1
0
Fork 0
forked from forgejo/forgejo
This commit is contained in:
Unknwon 2015-10-23 10:31:13 -04:00
parent b5fdf0947b
commit c6ce6bd4c2
5 changed files with 9 additions and 10 deletions

View file

@ -117,12 +117,12 @@ func Update(refName, oldCommitId, newCommitId, userName, repoUserName, repoName
if isNew {
l, err = newCommit.CommitsBefore()
if err != nil {
return fmt.Errorf("Find CommitsBefore erro: %v", err)
return fmt.Errorf("CommitsBefore: %v", err)
}
} else {
l, err = newCommit.CommitsBeforeUntil(oldCommitId)
if err != nil {
return fmt.Errorf("Find CommitsBeforeUntil erro: %v", err)
return fmt.Errorf("CommitsBeforeUntil: %v", err)
}
}