diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-04-30 13:50:27 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-04-30 13:50:27 +0900 |
commit | 5980e0d44258a6cccf1e5995947d4cba15145924 (patch) | |
tree | 8a8fab77e85eae241596a05e29830f94a229f9df /contrib/completion | |
parent | Merge branch 'hn/refs-trace-errno' (diff) | |
parent | completion: avoid aliased command lookup error in nounset mode (diff) | |
download | tgif-5980e0d44258a6cccf1e5995947d4cba15145924.tar.xz |
Merge branch 'vs/completion-with-set-u'
Effort to make the command line completion (in contrib/) safe with
"set -u" continues.
* vs/completion-with-set-u:
completion: avoid aliased command lookup error in nounset mode
Diffstat (limited to 'contrib/completion')
-rw-r--r-- | contrib/completion/git-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index dfa735ea62..49e76e9d08 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1129,7 +1129,7 @@ __git_pretty_aliases () # __git_aliased_command requires 1 argument __git_aliased_command () { - local cur=$1 last list word cmdline + local cur=$1 last list= word cmdline while [[ -n "$cur" ]]; do if [[ "$list" == *" $cur "* ]]; then |