diff options
Diffstat (limited to 'bash/bashrc.d/git.bash')
-rw-r--r-- | bash/bashrc.d/git.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/git.bash b/bash/bashrc.d/git.bash index 8c6fa466..7ac0524d 100644 --- a/bash/bashrc.d/git.bash +++ b/bash/bashrc.d/git.bash @@ -13,7 +13,7 @@ _git() { while read -r _ _ branch ; do branch=${branch##*/} [[ $branch == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue - COMPREPLY=("${COMPREPLY[@]}" "$branch") + COMPREPLY[${#COMPREPLY[@]}]=$branch done < <(git for-each-ref refs/heads refs/tags 2>/dev/null) return ;; |