From 304530d99046328f63c30dbd9d053fb10f86f1df Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Thu, 2 Feb 2012 16:50:47 -0500 Subject: [PATCH] Filter other remote branches. --- plugins/git/completions/_git-hub | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/git/completions/_git-hub b/plugins/git/completions/_git-hub index 86a1f33..904b8c5 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"