]> git.wh0rd.org Git - home.git/commitdiff
git-rb-all: rework local heads lookup
authorMike Frysinger <vapier@gentoo.org>
Sat, 10 Mar 2018 07:32:35 +0000 (23:32 -0800)
committerMike Frysinger <vapier@gentoo.org>
Sat, 10 Mar 2018 07:32:35 +0000 (23:32 -0800)
.bin/git-rb-all

index b4efb482a1887f558fffdf1f5634be4d68a3f06b..e20c83aca54e70591abb39d73ecae48bfff9ac2b 100755 (executable)
@@ -31,7 +31,7 @@ main() {
        local orig b branches
        orig=$(git rev-parse --abbrev-ref HEAD) || return
 
-       branches=( $(git ls-remote . 'heads/*' | sed 's:.*refs/heads/::') )
+       branches=( $(git ls-remote --heads . | sed 's:.*refs/heads/::') )
        for b in "${branches[@]}" ; do
                rb_one "${b}"
        done