From: Jeff King Date: Wed, 03 May 2017 20:03:45 GMT Subject: Re: Cloning a custom refspec does not work as expected Message-ID: <20170503200345.mjxvcv4o4wce3ddr@sigill.intra.peff.net> In-Reply-To: On Wed, May 03, 2017 at 02:16:47PM +0200, Sebastian Schuberth wrote: > I'd assume that this would work: > > $ git clone -c remote.origin.fetch=+refs/changes/*:refs/remotes/origin/changes/* > https://gerrit.googlesource.com/git-repo > > In fact, this *does* add the custom refs correct to .git/config, but > they are not fetched during the clone. I can manually fix that by > doing > > $ cd git-repo > $ git fetch > > afterwards, but the whole point is to avoid exactly that separate step. > > Is this a code bug or documentation bug? I think it's a code bug. More discussion in: http://public-inbox.org/git/robbat2-20170225T185056-448272755Z@orbis-terrarum.net/ -Peff