From 3cb2ac5a0e5c519ff5f6d83b8047f27ce77c2c00 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Tue, 8 Nov 2022 15:19:30 -1000 Subject: [PATCH] Silence error on git branches without upstreams. --- tcshrc.prompt.final | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcshrc.prompt.final b/tcshrc.prompt.final index c35c20f..504a5aa 100644 --- a/tcshrc.prompt.final +++ b/tcshrc.prompt.final @@ -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