diff options
Diffstat (limited to '')
-rwxr-xr-x | git-base.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-base.sh b/git-base.sh index 000b184..94e9070 100755 --- a/git-base.sh +++ b/git-base.sh @@ -123,7 +123,7 @@ readable_branch_name() { remote_branch_name() { local localRef="$(git symbolic-ref -q HEAD 2>/dev/null)" - local remoteBranch="$(git for-each-ref --format='%(upstream:short)' refs/heads $localRef )" + local remoteBranch="$(git for-each-ref --format='%(upstream:short)' refs/heads $localRef 2>/dev/null)" if [[ -n $remoteBranch ]]; then echo $remoteBranch return 0 |