From 4286e4eb630b435523ff88394b7026008c0a82f6 Mon Sep 17 00:00:00 2001 From: Arialdo Martini Date: Thu, 14 Nov 2013 12:29:08 +0100 Subject: [PATCH] fix #14 Compatibility with git v1.7.9.5 --- base.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base.sh b/base.sh index f031126..14d6930 100644 --- a/base.sh +++ b/base.sh @@ -26,7 +26,7 @@ function build_prompt { just_init=true else upstream=$(git rev-parse --symbolic-full-name --abbrev-ref @{upstream} 2> /dev/null) - if [[ -n $upstream ]]; then has_upstream=true; else has_upstream=false; fi + if [ -n $upstream -a "$upstream" != "@upstream}" ]; then has_upstream=true; else has_upstream=false; fi git_status=$(git status --porcelain 2> /dev/null)