Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jg/prompt-localize-temporary'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 22 Dec 2014 20:28:20 +0000
(12:28 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 22 Dec 2014 20:28:20 +0000
(12:28 -0800)
"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()
contrib/completion/git-prompt.sh
patch
|
blob
|
history
raw
(from parent 1:
3d4eecc
)
diff --git
a/contrib/completion/git-prompt.sh
b/contrib/completion/git-prompt.sh
index c5473dc8dba78b372fd95ef2bf5257ff5cdc3baf..729f7694795d1116ccedfc653f82da757e6e4ef4 100644
(file)
--- a/
contrib/completion/git-prompt.sh
+++ b/
contrib/completion/git-prompt.sh
@@
-270,7
+270,7
@@
__git_ps1_colorize_gitstring ()
__git_eread ()
{
- f="$1"
+
local
f="$1"
shift
test -r "$f" && read "$@" <"$f"
}