From 57e6d583f7dc1ec58e678c14bf185870605d2d87 Mon Sep 17 00:00:00 2001 From: mike crockett Date: Thu, 19 Jan 2023 08:17:05 -0600 Subject: [PATCH] Return error code from git branch command. --- lib/git/branch_shortcuts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/git/branch_shortcuts.sh b/lib/git/branch_shortcuts.sh index dc21a57..0a195f2 100644 --- a/lib/git/branch_shortcuts.sh +++ b/lib/git/branch_shortcuts.sh @@ -17,7 +17,7 @@ function _scmb_git_branch_shortcuts { # Fall back to normal git branch, if any unknown args given if [[ "$($_git_cmd branch | wc -l)" -gt 300 ]] || ([[ -n "$@" ]] && [[ "$@" != "-a" ]]); then exec_scmb_expand_args $_git_cmd branch "$@" - return 1 + return $? fi # Use ruby to inject numbers into git branch output