Re: Saving space/network on common repos

2014-12-22 Thread Craig Silverstein
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

Re: Saving space/network on common repos

2014-12-22 Thread Jonathan Nieder
Craig Silverstein wrote: 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

Re: Saving space/network on common repos

2014-12-22 Thread Jonathan Nieder
Craig Silverstein wrote: 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

Re: Saving space/network on common repos

2014-12-22 Thread Craig Silverstein
} This seems like good motivation to try to get that series in good shape and release it soon. I was going to spend some time tomorrow (if I can find any :-) ) trying to fix up the contrib script to work with submodules, or at least the kind that we use. Is that something that's worth the time

Re: Saving space/network on common repos

2014-12-17 Thread Stefan Beller
I am not sure if there was any improvement since then, but Junio wrote about alternates 2 years ago http://git-blame.blogspot.com/2012/08/bringing-bit-more-sanity-to-alternates.html -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to

Re: Saving space/network on common repos

2014-12-17 Thread Jonathan Nieder
(+cc: Duy who wrote the recent 'checkout --to' patch series) Hi Craig, Craig Silverstein wrote: By design, our Jenkins machine has several different directories that each hold a copy of the same git repository. (For instance, Jenkins may be running tests on our repo at several

Re: Saving space/network on common repos

2014-12-17 Thread Craig Silverstein
On Wed, Dec 17, 2014 at 2:32 PM, Jonathan Nieder jrnie...@gmail.com wrote: You might find 'git new-workdir' from contrib/workdir to be helpful. It lets you attach multiple working copies to a single set of objects and refs. Thanks! That does indeed sound promising -- like a more principled

Re: Saving space/network on common repos

2014-12-17 Thread Jonathan Nieder
Craig Silverstein wrote: On Wed, Dec 17, 2014 at 2:32 PM, Jonathan Nieder jrnie...@gmail.com wrote: Craig Silverstein wrote: Question 4) Is there a practical way to set up submodules so they can use the same object-sharing framework that the main repo does? It's possible to do, but we

Saving space/network on common repos

2014-12-16 Thread Craig Silverstein
At Khan Academy, we are running a Jenkins installation as our build server. By design, our Jenkins machine has several different directories that each hold a copy of the same git repository. (For instance, Jenkins may be running tests on our repo at several different commits at the same time.)