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

Re: [PATCH] repack: place temporary packs under .git/objects/pack/

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 19, 2010, 16:33 UTC
Message-ID
<7vocaq16s2.fsf@alter.siamese.dyndns.org>
In-Reply-To
<cbdf4787ddaccd7105ab1661529a98257d61179b.1287481801.git.trast@student.ethz.ch>
Thomas Rast <trast@student.ethz.ch> writes:
Show 15 quoted lines
> git-pack-objects is already careful to start out its temporary packs
> under .git/objects/pack/ (cf. 8b4eb6b, Do not perform cross-directory
> renames when creating packs, 2008-09-22), but git-repack did not
> respond in kind so the effort was lost when the filesystem boundary is
> exactly at that directory.
>
> Let git-repack pass a path under .git/objects/pack/ as the base for
> its temporary packs.
>
> This means we might need the $PACKDIR sooner (before the pack-objects
> invocation), so move the mkdir up just to be safe.
>
> Also note that the only use of *.pack is in the find invocation way
> before the pack-objects call, so the temporary packs will not suddenly
> show up in any wildcards because of the directory change.
Looks good; thanks.
Previous: Marat Radchenko
Message 7 of 7 in “[BUG] git repack fails if .git/objects/pack is on a separate partition”
  1. Marat RadchenkoOct 19, 2010
  2. Thomas RastOct 19, 2010
  3. Marat RadchenkoOct 19, 2010
  4. Marat RadchenkoOct 19, 2010
  5. repack: place temporary packs under .git/objects/pack/Thomas Rast, Oct 19, 2010
  6. Marat RadchenkoOct 19, 2010
  7. Junio C HamanoOct 19, 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.