Re: Cloning a custom refspec does not work as expected

2017-05-03 Thread Jeff King
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

Re: Cloning a custom refspec does not work as expected

2017-05-03 Thread Stefan Beller
On Wed, May 3, 2017 at 5:16 AM, Sebastian Schuberth wrote: > Hi, > > I'm trying to clone a custom ref, avoiding the need to init && fetch > manually. From reading [1] which says: > > "Set a configuration variable in the newly-created repository; this > takes effect

Cloning a custom refspec does not work as expected

2017-05-03 Thread Sebastian Schuberth
Hi, I'm trying to clone a custom ref, avoiding the need to init && fetch manually. From reading [1] which says: "Set a configuration variable in the newly-created repository; this takes effect immediately after the repository is initialized, but before the remote history is fetched or any files