[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vcswatch



Re: Raphael Hertzog 2014-08-02 <[🔎] 20140802090202.GA7291@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
-- 
cb@df7cb.de | http://www.df7cb.de/


Reply to: