vendor: update github.com/gogits/git-module

This commit is contained in:
Unknwon
2017-06-05 13:35:13 -04:00
parent 2155ef0208
commit 3359b942b3
2 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ type PullRequestInfo struct {
func (repo *Repository) GetMergeBase(base, head string) (string, error) {
stdout, err := NewCommand("merge-base", base, head).RunInDir(repo.Path)
if err != nil {
if strings.HasSuffix(err.Error(), " 1") {
if strings.Contains(err.Error(), "exit status 1") {
return "", ErrNoMergeBase{}
}
return "", err