1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Fix exit status 1 not handled @ getMergeCommit

This commit is contained in:
Bwko 2017-06-30 12:29:58 +02:00
parent 783b1967e2
commit b36849dc1f
No known key found for this signature in database
GPG key ID: 432CCC0818CB741D

View file

@ -495,7 +495,7 @@ func (pr *PullRequest) getMergeCommit() (*git.Commit, error) {
if err != nil {
// Errors are signaled by a non-zero status that is not 1
if err.Error() == "exit status 1" {
if strings.Contains(err.Error(), "exit status 1") {
return nil, nil
}
return nil, fmt.Errorf("git merge-base --is-ancestor: %v %v", stderr, err)