We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a473f7 commit dd835ffCopy full SHA for dd835ff
internal/git/cli_actor.go
@@ -23,6 +23,10 @@ func (g *cliActor) FetchAll(ctx context.Context) error {
23
}
24
25
func (g *cliActor) DeleteBranches(ctx context.Context, branches []Branch) error {
26
+ if len(branches) == 0 {
27
+ return nil
28
+ }
29
+
30
args := []string{"branch", "-d"}
31
for _, branch := range branches {
32
args = append(args, branch.Name)
0 commit comments