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

Re: [BUG] git repack fails if .git/objects/pack is on a separate partition

From
Thomas Rast <trast@student.ethz.ch>
Date
Oct 19, 2010, 06:59 UTC
Message-ID
<201010190859.43098.trast@student.ethz.ch>
In-Reply-To
<1287469706023-5649732.post@n2.nabble.com>
Marat Radchenko wrote:
Show 6 quoted lines
> fatal: unable to rename temporary pack file: Invalid cross-device link
> error: failed to run repack
> 
> Reason:
> write_pack_file in builtin/pack-objects.c first writes tmp file in
> "pack/tmp_pack_XXXXXX". 

What's your git version? Since 8b4eb6b (Do not perform cross-directory renames when creating packs, 2008-09-22), which was first released in 1.6.0.3 and 1.6.1, it should only create and rename files within the pack/ subdirectory. Which is what you are implying in the above snippet, but this should never result in a cross-device rename, so maybe I'm missing something.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Marat RadchenkoNext: Marat Radchenko
Message 2 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.