We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2307170 commit 46aaea2Copy full SHA for 46aaea2
gitprompt.sh
@@ -496,10 +496,11 @@ function updatePrompt() {
496
unset GIT_REMOTE
497
fi
498
499
- export GIT_UPSTREAM="${git_status_fields[2]}"
500
- if [[ -z "${__GIT_PROMPT_SHOW_UPSTREAM}" || "^" == "$GIT_UPSTREAM" ]]; then
+ local GIT_UPSTREAM_PRIVATE="${git_status_fields[2]}"
+ if [[ -z "${__GIT_PROMPT_SHOW_UPSTREAM}" || "^" == "$GIT_UPSTREAM_PRIVATE" ]]; then
501
unset GIT_UPSTREAM
502
else
503
+ export GIT_UPSTREAM=${GIT_UPSTREAM_PRIVATE}
504
local GIT_FORMATTED_UPSTREAM="${GIT_PROMPT_UPSTREAM//_UPSTREAM_/\$GIT_UPSTREAM}"
505
506
0 commit comments