mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-09 19:31:21 +01:00
Merge pull request #2087 from Bwko/fix_error_exit
Fix exit status 1 not handled @ getMergeCommit (#2087)
This commit is contained in:
commit
12cb6cd3c9
1 changed files with 1 additions and 1 deletions
|
@ -495,7 +495,7 @@ func (pr *PullRequest) getMergeCommit() (*git.Commit, error) {
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Errors are signaled by a non-zero status that is not 1
|
// 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, nil
|
||||||
}
|
}
|
||||||
return nil, fmt.Errorf("git merge-base --is-ancestor: %v %v", stderr, err)
|
return nil, fmt.Errorf("git merge-base --is-ancestor: %v %v", stderr, err)
|
||||||
|
|
Loading…
Reference in a new issue