* Thomas Goirand <zigo@debian.org> [140802 18:06]:
> Is there something quicker than 2 "git ls-remote" calls?
Hi,
I don't know a way to do this in a single call but you can eliminate a
few uses of grep:
HEADREF=`git ls-remote
https://alioth.debian.org/anonscm/git/openstack/ceilometer.git HEAD
| awk '{print $1}'`
git ls-remote --heads
https://alioth.debian.org/anonscm/git/openstack/ceilometer.git | grep
${HEADREF} | awk '{print $2}' | sed 's#refs/heads/##'
--
Etienne Millon