aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_completion.d/git.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bash_completion.d/git.bash b/bash/bash_completion.d/git.bash
index dd43fdbc..2e77184a 100644
--- a/bash/bash_completion.d/git.bash
+++ b/bash/bash_completion.d/git.bash
@@ -132,7 +132,7 @@ _git() {
# Complete with remote subcommands and then remote names
remote)
local word
- if ((COMP_CWORD == 1)) ; then
+ if ((COMP_CWORD == 2)) ; then
while IFS= read -r word ; do
[[ -n $word ]] || continue
COMPREPLY[${#COMPREPLY[@]}]=$word
@@ -156,7 +156,7 @@ _git() {
# Complete with remotes and then refs
fetch|pull|push)
- if ((COMP_CWORD == 1)) ; then
+ if ((COMP_CWORD == 2)) ; then
_git remotes
else
_git refs