* Thomas Goirand <z...@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


-- 
To UNSUBSCRIBE, email to debian-qa-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140802161418.GA11588@klow

Reply via email to