diff --git a/plugins/git/completions/_git-hub b/plugins/git/completions/_git-hub index 86a1f336..904b8c54 100644 --- a/plugins/git/completions/_git-hub +++ b/plugins/git/completions/_git-hub @@ -26,6 +26,7 @@ case "$state" in remote="$words[(($CURRENT - 1))]" branches=($( git branch -r \ + | grep "${remote}/" \ | sed \ -e "/${remote}\/HEAD -> ${remote}/d" \ -e "s/^[[:space:]]*${remote}\///g"