summaryrefslogtreecommitdiffstats
path: root/modules/git/repo_compare.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/repo_compare.go')
-rw-r--r--modules/git/repo_compare.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_compare.go b/modules/git/repo_compare.go
index ddc8109720..7d66a2dc07 100644
--- a/modules/git/repo_compare.go
+++ b/modules/git/repo_compare.go
@@ -39,7 +39,7 @@ func (repo *Repository) GetMergeBase(tmpRemote string, base, head string) (strin
}
}
- stdout, err := NewCommand("merge-base", base, head).RunInDir(repo.Path)
+ stdout, err := NewCommand("merge-base", "--", base, head).RunInDir(repo.Path)
return strings.TrimSpace(stdout), base, err
}