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

Re: Missing blobs after pruning dangling commits

From
Marcin Wiśnicki <mwisnicki@gmail.com>
Date
Aug 23, 2011, 10:16 UTC
Message-ID
<CAC9GOO_QGsadeE4EK8gg6JMZdzFPY_SjnnwOqjp5f--A2SO9Og@mail.gmail.com>
In-Reply-To
<4E5372E5.1070509@drmicha.warpmail.net>
2011/8/23 Michael J Gruber <git@drmicha.warpmail.net>:
> Suggestions:
Neither of them helped, however I've added old packs from backup and did

git fsck git repack -ad git reflog expire --expire=0 --all git repack -ad git prune git fsck

And now everything is fine.

Only thing that concerns me is that there are still two packs: $ ls -la .git/objects/pack/ total 145632 drwxr-xr-x 2 marcin.w Administ 4096 Aug 23 11:42 . drwxr-xr-x 4 marcin.w Administ 20480 Aug 23 11:47 .. -rw-r--r-- 1 marcin.w Administ 529152 Aug 9 15:01 .tmp-3616-pack-83952e51abdea7469eef06dde2e692e04ba8f9f3.idx -rw-r--r-- 1 marcin.w Administ 149572531 Aug 9 15:01 .tmp-3616-pack-83952e51abdea7469eef06dde2e692e04ba8f9f3.pack -r--r--r-- 1 marcin.w Administ 555724 Aug 23 11:42 pack-3cd1ec9be7cdb31d8eac4404c249edf9c1654937.idx -r--r--r-- 1 marcin.w Administ 147570858 Aug 23 11:42 pack-3cd1ec9be7cdb31d8eac4404c249edf9c1654937.pack

Both files have identical ACLs but pack-3cd1.. has dos attribute "readonly". Toggling this attribute on any file does not seem to have an effect on git repack. Both packs are present in .git/objects/info/packs. Deleting it by hand followed by repack -ad and fsck seems to work though, which means it was redundant yet not removed by repack.

> Could you share that repo or is it private?
Unfortunately I can't.
Previous: Michael J Gruber
Message 3 of 3 in “Missing blobs after pruning dangling commits”
  1. Marcin WiśnickiAug 22, 2011
  2. Michael J GruberAug 23, 2011
  3. Marcin WiśnickiAug 23, 2011

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.