Skip to content

Commit

Permalink
Fix git branch cleanup for nushell version 0.91+ (#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
dam4rus authored Mar 26, 2024
1 parent 707cda3 commit 3cee758
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/git/git_branch_cleanup.nu
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_default_branch [
$upstream
]

run-external --redirect-stdout "git" "symbolic-ref" $args
run-external --redirect-stdout "git" "symbolic-ref" ...$args
| str trim
| path basename
}
Expand Down Expand Up @@ -139,7 +139,7 @@ def list_merged [
]
)

run-external --redirect-stdout "git" "branch" $args
run-external --redirect-stdout "git" "branch" ...$args
| lines
| filter {|branch|
$keep
Expand Down Expand Up @@ -167,5 +167,5 @@ def switch_branch [
$branch
]

run-external "git" "switch" $args
run-external "git" "switch" ...$args
}

0 comments on commit 3cee758

Please sign in to comment.