mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
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
This commit is contained in:
commit
5980e0d442
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue