Browse Source

Fix exit status 1 not handled @ getMergeCommit

for-closed-social
Bwko 7 years ago
parent
commit
b36849dc1f
No known key found for this signature in database GPG Key ID: 432CCC0818CB741D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/pull.go

+ 1
- 1
models/pull.go 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)

Loading…
Cancel
Save