summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-11-11 13:18:38 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-11-11 13:18:38 -0800
commitfb628ab129dc2a29581e05edd886e3dc16a4ac49 (patch)
treef0aa80517478477d098a16245b64a0c1142699f8 /contrib
parentMerge branch 'rs/clear-commit-marks-in-repo' (diff)
parentgit-prompt.sh: localize `option` in __git_ps1_show_upstream (diff)
downloadtgif-fb628ab129dc2a29581e05edd886e3dc16a4ac49.tar.xz
Merge branch 'sd/prompt-local-variable'
Code clean-up. * sd/prompt-local-variable: git-prompt.sh: localize `option` in __git_ps1_show_upstream
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/git-prompt.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh
index 54e123d632..4640a1535d 100644
--- a/contrib/completion/git-prompt.sh
+++ b/contrib/completion/git-prompt.sh
@@ -138,6 +138,7 @@ __git_ps1_show_upstream ()
done <<< "$output"
# parse configuration values
+ local option
for option in ${GIT_PS1_SHOWUPSTREAM}; do
case "$option" in
git|svn) upstream="$option" ;;