Skip to content

Commit 3cb4aca

Browse files
committed
Have prune branch prune all branches that no longer have remotes
1 parent c794dc9 commit 3cb4aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/git-prune-branch/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Delete the branches that have been merged into the target branch.
4747
flag.Parse()
4848

4949
defaultBranch := getDefaultBranch()
50-
cmd := exec.Command("git", "branch", "--merged", defaultBranch)
50+
cmd := exec.Command("git", "branch", "--no-column")
5151
out, err := cmd.StdoutPipe()
5252
if err != nil {
5353
fmt.Fprintf(os.Stderr, "Error: Could not create pipe: %s\n", err)

0 commit comments

Comments
 (0)