git-prompt.sh: make $f local to __git_eread()
commit9dd70e0a0d17aa66c2d95a05952dec05db156fe3
authorJustin Guenther <jguenther@gmail.com>
Fri, 12 Dec 2014 21:59:56 +0000 (12 15:59 -0600)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Dec 2014 23:13:37 +0000 (12 15:13 -0800)
tree979b352aceba19fe805b6375021fe278e4ae933f
parent59d3924fbb300ebfe05f9079bcfe29d0a3f30661
git-prompt.sh: make $f local to __git_eread()

This function uses (non-local) $f to store the value of its first parameter.
This can interfere with the user's environment.

Signed-off-by: Justin Guenther <jguenther@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-prompt.sh