mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 02:33:11 +00:00
fix API
This commit is contained in:
parent
b6d2b96259
commit
9ed60d96a9
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ func (repo *Repository) updateWikiPage(doer *User, oldTitle, title, content, mes
|
||||||
if com.IsExist(localPath) {
|
if com.IsExist(localPath) {
|
||||||
// No need to check if nothing in the repository.
|
// No need to check if nothing in the repository.
|
||||||
if git.IsBranchExist(localPath, "master") {
|
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)
|
return fmt.Errorf("Reset: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue