completion: More fixes to prevent unbound variable errors
commit5c9cc64a4a608ab0bbd5eb5c8e405bfe050be309
authorTed Pavlic <ted@tedpavlic.com>
Wed, 11 Feb 2009 18:03:26 +0000 (11 13:03 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Feb 2009 19:09:17 +0000 (11 11:09 -0800)
treecdaefb022cd94498566ff311d8861b0c42be72bb
parente5dd864adfeb8b0176b31a132e972d7f7beff32a
completion: More fixes to prevent unbound variable errors

Several functions make use of "[-n ...]" and "[-z ...]". In many cases,
the variables being tested were declared with "local."

However, several __variables are not, and so they must be replaced with
their ${__-} equivalents.

Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash