1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-13 23:05:48 +00:00
This commit is contained in:
Unknwon 2015-12-01 16:33:45 -05:00
parent b6d2b96259
commit 9ed60d96a9

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