Re: Raphael Hertzog 2014-08-02 <20140802090202.ga7...@x230-buxy.home.ouaza.com>
> There's no need for this.
> 
> $ git ls-remote 
> https://alioth.debian.org/anonscm/git/openstack/ceilometer.git|grep HEAD
> 
> This will give you the commit corresponding to the default branch. You can
> then just checkout that commit.

I want the branch name, so this doesn't work. The only way to extract that info
seems to be "git remote show origin":

* remote origin
  Fetch URL: git://anonscm.debian.org/openstack/neutron.git
  Push  URL: git://anonscm.debian.org/openstack/neutron.git
  HEAD branch: debian/icehouse
  Remote branches:
    debian/havana                 tracked
    debian/icehouse               tracked

... and then parse that. That's what vcswatch is doing now.

Thanks for spotting this issue.

Why "git clone --mirror" doesn't set up the repo to automatically
track HEAD is beyond my understanding.

Christoph
-- 
c...@df7cb.de | http://www.df7cb.de/


-- 
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/20140803141424.gb18...@msg.df7cb.de

Reply via email to