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

Re: Retrospectively add alternates to a repository?

From
Jeff King <peff@peff.net>
Date
Feb 27, 2010, 12:30 UTC
Message-ID
<20100227123056.GA22382@coredump.intra.peff.net>
In-Reply-To
<loom.20100227T123539-643@post.gmane.org>
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:
Show 5 quoted lines
> 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
Previous: Steve FollyNext: Felipe Contreras
Message 5 of 7 in “Retrospectively add alternates to a repository?”
  1. Steve FollyFeb 26, 2010
  2. Tay Ray ChuanFeb 27, 2010
  3. Jeff KingFeb 27, 2010
  4. Steve FollyFeb 27, 2010
  5. Jeff KingFeb 27, 2010
  6. Felipe ContrerasMay 16, 2010
  7. Jeff KingMay 22, 2010

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.