From: Jeff King Date: Sat, 27 Feb 2010 12:30:57 GMT Subject: Re: Retrospectively add alternates to a repository? Message-ID: <20100227123056.GA22382@coredump.intra.peff.net> In-Reply-To: On Sat, Feb 27, 2010 at 11:43:55AM +0000, Steve Folly wrote: > I now have a plan to write a script to attach and > detach repositories to and from local mirrors on demand: I think they should work, but: > attach = > echo "/path/to/mirror" > .git/objects/info/alternates && > git repack -adl && > git repack -ad && > git repack -adl I don't think the first repack is doing anything (I showed it in my example only to show that it was not actually working). -Peff