diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2014-04-09 13:50:04 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-04-09 14:22:18 -0700 |
commit | 880111c11befaaf070e8ea1021bf11b4fb58c461 (patch) | |
tree | b823cf2a33d9f1115996cdccb346d08e2bc37e62 /urlmatch.c | |
parent | Sync with 1.9.2 (diff) | |
download | tgif-880111c11befaaf070e8ea1021bf11b4fb58c461.tar.xz |
completion: fix completing args of aliased "push", "fetch", etc.
Some commands need the first word to determine the actual action that is
being executed, however, the command is wrong when we use an alias, for
example 'alias.p=push', if we try to complete 'git p origin ', the
result would be wrong because __git_complete_remote_or_refspec() doesn't
know where it came from.
So let's override words[1], so the alias 'p' is override by the actual
command, 'push'.
Reported-by: Aymeric Beaumet <aymeric.beaumet@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'urlmatch.c')
0 files changed, 0 insertions, 0 deletions