Skip to content

Commit 9977d09

Browse files
committed
fix
1 parent 8cad44f commit 9977d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ type DivergeObject struct {
283283
// GetDivergingCommits returns the number of commits a targetBranch is ahead or behind a baseBranch
284284
func GetDivergingCommits(ctx context.Context, repoPath, baseBranch, targetBranch string) (do DivergeObject, err error) {
285285
cmd := NewCommand(ctx, "rev-list", "--count", "--left-right").
286-
AddDynamicArguments(baseBranch + "..." + targetBranch)
286+
AddDynamicArguments(baseBranch + "..." + targetBranch).AddArguments("--")
287287
stdout, _, err := cmd.RunStdString(&RunOpts{Dir: repoPath})
288288
if err != nil {
289289
return do, err

0 commit comments

Comments
 (0)