From 9ed60d96a9cecb5649691221432501b59fbe133d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 1 Dec 2015 16:33:45 -0500 Subject: [PATCH] fix API --- models/wiki.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/wiki.go b/models/wiki.go index 7baf9f94..5003b177 100644 --- a/models/wiki.go +++ b/models/wiki.go @@ -129,7 +129,7 @@ func (repo *Repository) updateWikiPage(doer *User, oldTitle, title, content, mes if com.IsExist(localPath) { // No need to check if nothing in the repository. if git.IsBranchExist(localPath, "master") { - if err = git.Reset(localPath, true, "origin/master"); err != nil { + if err = git.ResetHEAD(localPath, true, "origin/master"); err != nil { return fmt.Errorf("Reset: %v", err) } }