summaryrefslogtreecommitdiffstats
path: root/models/wiki.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-01 16:33:45 -0500
committerUnknwon <u@gogs.io>2015-12-01 16:33:45 -0500
commit9ed60d96a9cecb5649691221432501b59fbe133d (patch)
tree939d2e5f662aa01deaa256780a6abe5f565bcf65 /models/wiki.go
parentb6d2b96259984754351b8f24036e840ef6a916aa (diff)
downloadgitea-9ed60d96a9cecb5649691221432501b59fbe133d.tar.gz
gitea-9ed60d96a9cecb5649691221432501b59fbe133d.zip
fix API
Diffstat (limited to 'models/wiki.go')
-rw-r--r--models/wiki.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/wiki.go b/models/wiki.go
index 7baf9f9453..5003b177f7 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)
}
}