From 1acb2535af1c1b134c63ee74d77271eebb1b567f Mon Sep 17 00:00:00 2001 From: Robert Kalmar Date: Tue, 26 Mar 2024 13:09:51 +0100 Subject: [PATCH] Fix git branch cleanup for nushell version 0.91+ --- modules/git/git_branch_cleanup.nu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/git/git_branch_cleanup.nu b/modules/git/git_branch_cleanup.nu index 9dc3967b6..0cb782260 100644 --- a/modules/git/git_branch_cleanup.nu +++ b/modules/git/git_branch_cleanup.nu @@ -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 } @@ -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 @@ -167,5 +167,5 @@ def switch_branch [ $branch ] - run-external "git" "switch" $args + run-external "git" "switch" ...$args }