From 86bc09eb6d303ca3a4d8b439b6522cab0156c670 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 9 Mar 2018 23:32:35 -0800 Subject: [PATCH] git-rb-all: rework local heads lookup --- .bin/git-rb-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bin/git-rb-all b/.bin/git-rb-all index b4efb48..e20c83a 100755 --- a/.bin/git-rb-all +++ b/.bin/git-rb-all @@ -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 -- 2.39.5