git/list[1] front-page[2] threads[3] people[4] search[5] about
 

No local cloning for insteadOf URLs

From
HMHannes Mezger <hannes.mezger@gmail.com>
Date
Jan 20, 2014, 17:06 UTC
Message-ID
<52DD5784.1000601@gmail.com>
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
Message 1 of 1 in “No local cloning for insteadOf URLs”
  1. Hannes MezgerJan 20, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.