]> git.ipfire.org Git - thirdparty/git.git/commit
completion: audit and guard $GIT_* against unset use
authorVille Skyttä <ville.skytta@iki.fi>
Thu, 8 Apr 2021 07:06:41 +0000 (10:06 +0300)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Apr 2021 17:45:36 +0000 (10:45 -0700)
commitc5c0548d793edf4a6e319f237f3a01a1f093bbd7
tree4a4341fa2fbe8f8ae07f309a8bdcc57469d7c04b
parent48bf2fa8bad054d66bd79c6ba903c89c704201f7
completion: audit and guard $GIT_* against unset use

$GIT_COMPLETION_SHOW_ALL and $GIT_TESTING_ALL_COMMAND_LIST were used
without guarding against them being unset, causing errors in nounset
(set -u) mode.

No other nounset-unsafe $GIT_* usages were found.

While at it, remove a superfluous (duplicate) unset guard from $GIT_DIR
in __git_find_repo_path.

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