git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* No local cloning for insteadOf URLs
@ 2014-01-20 17:06 Hannes Mezger
  0 siblings, 0 replies; only message in thread
From: Hannes Mezger @ 2014-01-20 17:06 UTC (permalink / raw)
  To: git

Hi there,

on Linux I'm using the config option url.[].insteadOf feature to clone
certain (very big) submodules from a local mirror instead of from remote.
The configuration is something like

[url "/home/sampleuser/mirrors/bigrepo.git"]
    insteadOf = git@remotehost:bigrepo.git

Cloning this repo with
    git clone git@remotehost:bigrepo.git
works fine, it is cloning from my local repo instead of from the remote one.

But: I was expecting the 'git clone' call to take into account that it
is cloning a local repository and create hard links to the packs of my
local mirror repository, but instead it copies the whole repo just as it
was a remote repository. This should get fixed, this 'git clone' call
should detect that it is cloning a local repository and create hard
links to the *.pack files.

When cloning the local mirror directly with
    git clone /home/sampleuser/mirrors/bigrepo.git
'git clone' automatically creates hard links to the local mirrors *.pack
files.


Cheers,

Hannes

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-20 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-20 17:06 No local cloning for insteadOf URLs Hannes Mezger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).