fix upstream
This commit is contained in:
parent
0a858c8558
commit
5f0a11823d
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user