Skip to content

Commit

Permalink
Add '--' to 'git rev-list' to disambiguate branch name from path
Browse files Browse the repository at this point in the history
  • Loading branch information
efussi committed Jan 19, 2025
1 parent c03b892 commit 2a87c04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/commands/git_commands/branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func (self *BranchCommands) IsBranchMerged(branch *models.Branch, mainBranches *
Arg(lo.Map(branchesToCheckAgainst, func(branch string, _ int) string {
return fmt.Sprintf("^%s", branch)
})...).
Arg("--").
ToArgv()

stdout, _, err := self.cmd.New(cmdArgs).RunWithOutputs()
Expand Down

0 comments on commit 2a87c04

Please sign in to comment.