]> git.ipfire.org Git - thirdparty/git.git/commit
completion: nounset mode fixes
authorVille Skyttä <ville.skytta@iki.fi>
Mon, 29 Jun 2020 18:59:45 +0000 (21:59 +0300)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Jul 2020 21:55:30 +0000 (14:55 -0700)
commitc2dbcd206d2d654c1d934501a7f03a5a0f452b92
treeaafc1f56583a2f0f1b170329d51589d0538adf25
parenta08a83db2bf27f015bec9a435f6d73e223c21c5e
completion: nounset mode fixes

Accessing unset variables results an errors when the shell is in
nounset/-u mode. This fixes the cases I've come across while using git
completion in a shell running in that mode for a while. It's hard to
tell if this is the complete set, but at least it improves things.

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash