Skip to content

Commit fb628ab

Browse files
committed
Merge branch 'sd/prompt-local-variable'
Code clean-up. * sd/prompt-local-variable: git-prompt.sh: localize `option` in __git_ps1_show_upstream
2 parents 902f358 + 9542d56 commit fb628ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/completion/git-prompt.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ __git_ps1_show_upstream ()
138138
done <<< "$output"
139139

140140
# parse configuration values
141+
local option
141142
for option in ${GIT_PS1_SHOWUPSTREAM}; do
142143
case "$option" in
143144
git|svn) upstream="$option" ;;

0 commit comments

Comments
 (0)