mirror of
https://github.com/gogs/gogs.git
synced 2026-05-09 00:36:11 +02:00
vendor: update github.com/gogits/git-module
This commit is contained in:
2
vendor/github.com/gogits/git-module/repo_pull.go
generated
vendored
2
vendor/github.com/gogits/git-module/repo_pull.go
generated
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user