fix #14 Compatibility with git v1.7.9.5
This commit is contained in:
parent
18f9b682c1
commit
4286e4eb63
2
base.sh
2
base.sh
@ -26,7 +26,7 @@ function build_prompt {
|
|||||||
just_init=true
|
just_init=true
|
||||||
else
|
else
|
||||||
upstream=$(git rev-parse --symbolic-full-name --abbrev-ref @{upstream} 2> /dev/null)
|
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)
|
git_status=$(git status --porcelain 2> /dev/null)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user