Skip to content

Commit 35b5a8b

Browse files
committed
Merge branch 'jg/prompt-localize-temporary'
"git-prompt" (in contrib/) used a variable from the global scope, possibly contaminating end-user's namespace. * jg/prompt-localize-temporary: git-prompt.sh: make $f local to __git_eread()
2 parents 3d4eecc + 9dd70e0 commit 35b5a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-prompt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ __git_ps1_colorize_gitstring ()
270270

271271
__git_eread ()
272272
{
273-
f="$1"
273+
local f="$1"
274274
shift
275275
test -r "$f" && read "$@" <"$f"
276276
}

0 commit comments

Comments
 (0)