Silence error on git branches without upstreams.

This commit is contained in:
2022-11-08 15:19:30 -10:00
parent 007f7a7e26
commit 3cb2ac5a0e

View File

@ -276,7 +276,7 @@ if( 0 == ${__res} ) then
set branch_symbol=`printf "\uE0A0"`
# I could always fallback to this one... (keep padded spaces... for alignment)
set branch_symbol=`printf '\u2387\ \ '`
set git_counts=`git rev-list --count --left-right \@\{upstream\}..HEAD`
git rev-list --count --left-right \@\{upstream\}..HEAD>&/dev/null
set __res=$?
#echo "Got: ${git_counts}"
if( 0 == ${__res} ) then