Browse Source

fix API

tags/v1.2.0-rc1
Unknwon 9 years ago
parent
commit
34d69dab86
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/wiki.go

+ 1
- 1
models/wiki.go View File

@@ -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)
}
}


Loading…
Cancel
Save