From: Hannes Mezger <hannes.mezger@gmail.com>
To: git@vger.kernel.org
Subject: No local cloning for insteadOf URLs
Date: Mon, 20 Jan 2014 18:06:12 +0100 [thread overview]
Message-ID: <52DD5784.1000601@gmail.com> (raw)
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
reply other threads:[~2014-01-20 17:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52DD5784.1000601@gmail.com \
--to=hannes.mezger@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).