{"thread":{"id":"35696","subject":"No local cloning for insteadOf URLs","startedAt":"2014-01-20T17:06:12Z","lastAt":"2014-01-20T17:06:12Z","messageCount":1,"participants":["Hannes Mezger"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"233406","messageId":"52DD5784.1000601@gmail.com","threadId":"35696","inReplyTo":null,"subject":"No local cloning for insteadOf URLs","fromName":"Hannes Mezger","fromEmail":"hannes.mezger@gmail.com","sentAt":"2014-01-20T17:06:12Z","receivedAt":"2014-01-20T17:06:12Z","isPatch":false,"sender":{"key":"hannes.mezger@gmail.com","avatar":null},"body":"Hi there,\n\non Linux I'm using the config option url.[].insteadOf feature to clone\ncertain (very big) submodules from a local mirror instead of from remote.\nThe configuration is something like\n\n[url \"/home/sampleuser/mirrors/bigrepo.git\"]\n    insteadOf = git@remotehost:bigrepo.git\n\nCloning this repo with\n    git clone git@remotehost:bigrepo.git\nworks fine, it is cloning from my local repo instead of from the remote one.\n\nBut: I was expecting the 'git clone' call to take into account that it\nis cloning a local repository and create hard links to the packs of my\nlocal mirror repository, but instead it copies the whole repo just as it\nwas a remote repository. This should get fixed, this 'git clone' call\nshould detect that it is cloning a local repository and create hard\nlinks to the *.pack files.\n\nWhen cloning the local mirror directly with\n    git clone /home/sampleuser/mirrors/bigrepo.git\n'git clone' automatically creates hard links to the local mirrors *.pack\nfiles.\n\n\nCheers,\n\nHannes\n"}]}