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