From acc6c1bd913e94cb347fa83bd8177d64659bb2a1 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: May 22 2011 22:06:28 +0000 Subject: fedpkg: Support branch completion on non-default remotes The default remote is named origin, but there is nothing stopping users from renaming the remote or adding others. --- diff --git a/src/fedpkg.bash b/src/fedpkg.bash index 676c795..4a5cd0d 100644 --- a/src/fedpkg.bash +++ b/src/fedpkg.bash @@ -276,8 +276,7 @@ _fedpkg_branch() local git_options= format="--format %(refname:short)" [[ -n $1 ]] && git_options="--git-dir=$1/.git" - git $git_options for-each-ref $format 'refs/remotes/origin' \ - | sed 's,^origin/,,' + git $git_options for-each-ref $format 'refs/remotes' | sed 's,.*/,,' git $git_options for-each-ref $format 'refs/heads' }