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()
This commit is contained in:
commit
35b5a8b769
@ -270,7 +270,7 @@ __git_ps1_colorize_gitstring ()
|
|||||||
|
|
||||||
__git_eread ()
|
__git_eread ()
|
||||||
{
|
{
|
||||||
f="$1"
|
local f="$1"
|
||||||
shift
|
shift
|
||||||
test -r "$f" && read "$@" <"$f"
|
test -r "$f" && read "$@" <"$f"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user