fix upstream

This commit is contained in:
Yehor Lvivski 2013-11-08 02:46:53 +02:00
parent 0a858c8558
commit 5f0a11823d

View File

@ -66,7 +66,7 @@ function build_prompt {
just_init=true
else
upstream=$(git rev-parse --symbolic-full-name --abbrev-ref @{upstream} 2> /dev/null)
if [[ $upstream != '@{upstream}' ]]; then has_upstream=true; else has_upstream=false; upstream=''; fi
if [[ -n $upstream ]]; then has_upstream=true; else has_upstream=false; fi
git_status=$(git status --porcelain 2> /dev/null)