Skip to content

Commit 805a20b

Browse files
stefanhallerkarolzwolak
authored andcommitted
Don't log the git rev-list command that we use for IsBranchMerged (jesseduffield#4896)
When you delete a branch, we call this function to determine whether we need to ask for confirmation of not. We don't want to log this, because it's not a command that a user would normally use as part of this operation.
2 parents 163aca1 + 67da1ee commit 805a20b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/commands/git_commands/branch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func (self *BranchCommands) IsBranchMerged(branch *models.Branch, mainBranches *
288288
Arg("--").
289289
ToArgv()
290290

291-
stdout, _, err := self.cmd.New(cmdArgs).RunWithOutputs()
291+
stdout, _, err := self.cmd.New(cmdArgs).DontLog().RunWithOutputs()
292292
if err != nil {
293293
return false, err
294294
}

0 commit comments

Comments
 (0)