Skip to content

Commit

Permalink
fix wrong commit id error
Browse files Browse the repository at this point in the history
  • Loading branch information
a1012112796 committed Aug 24, 2020
1 parent a9fa07e commit a5fcf91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/pull/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,9 @@ func MergedManually(pr *models.PullRequest, doer *models.User, baseGitRepo *git.

commit, err := baseGitRepo.GetCommit(commitID)
if err != nil {
if git.IsErrNotExist(err) {
return fmt.Errorf("Wrong commit ID")
}
return
}

Expand Down

0 comments on commit a5fcf91

Please sign in to comment.