Skip to content

Commit 961c1b1

Browse files
committed
Merge branch 'fc/complete-aliased-push'
* fc/complete-aliased-push: completion: fix completing args of aliased "push", "fetch", etc.
2 parents 427ed40 + 880111c commit 961c1b1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2564,6 +2564,7 @@ __git_main ()
25642564

25652565
local expansion=$(__git_aliased_command "$command")
25662566
if [ -n "$expansion" ]; then
2567+
words[1]=$expansion
25672568
completion_func="_git_${expansion//-/_}"
25682569
declare -f $completion_func >/dev/null && $completion_func
25692570
fi

contrib/completion/git-completion.zsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ __git_zsh_bash_func ()
104104

105105
local expansion=$(__git_aliased_command "$command")
106106
if [ -n "$expansion" ]; then
107+
words[1]=$expansion
107108
completion_func="_git_${expansion//-/_}"
108109
declare -f $completion_func >/dev/null && $completion_func
109110
fi

0 commit comments

Comments
 (0)