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

Re: Saving space/network on common repos

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 23, 2014, 01:33 UTC
Message-ID
<20141223013347.GV29365@google.com>
In-Reply-To
<CAGXKyzGnnt6bBEPoy4nvNn=zX0hdRHpgvsAe263apaDsVxv0dA@mail.gmail.com>
Craig Silverstein wrote:
Show 7 quoted lines
> btw, just FYI, the scheme you lay out here doesn't actually work
> as-is.  The problem is the config file, which has an entry like:
>            worktree = ../../../mysubmodule
> This depends on the config file living in
> ./git/modules/mysubmodule/config.  But the proposed scheme moves the
> config file to mysubmodule/.git/config, and the relative path is
> broken.
*puzzled* Can you give a transcript illustrating this happening?

Submodules with .git directory within their worktree or under .git/modules/ are both supposed to work. And in either case, having refs/ and objects/ as symlinks should work fine. When git new-workdir creates a new workdir, it has its own new and separate config file, so I don't think that is the source of trouble.

Thanks, Jonathan

Previous: Craig SilversteinNext: Jonathan Nieder
Message 7 of 9 in “Saving space/network on common repos”
  1. Craig SilversteinDec 17, 2014
  2. Stefan BellerDec 17, 2014
  3. Jonathan NiederDec 17, 2014
  4. Craig SilversteinDec 17, 2014
  5. Jonathan NiederDec 18, 2014
  6. Craig SilversteinDec 23, 2014
  7. Jonathan NiederDec 23, 2014
  8. Jonathan NiederDec 23, 2014
  9. Craig SilversteinDec 23, 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.