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

Recovery after interrupted repack

From
HKHannu Koivisto <azure@iki.fi>
Date
Oct 26, 2011, 09:15 UTC
Message-ID
<8339egazbf.fsf@kalahari.s2.org>
Hi,

I interrupted git repack -a -f -d and now most commands say "fatal: bad object HEAD". Additionally an attempt to run git repack again says a bunch of "error: refs/heads/foo does not point to a valid object!" messages.

git fsck prints a huge list of "missing blob <sha-1>" lines.

I'm using a Cygwin build of git 1.7.5.1 (I also have a build of the latest master available).

-- 
Hannu
Next: Drew Northup
Message 1 of 2 in “Recovery after interrupted repack”
  1. Hannu KoivistoOct 26, 2011
  2. Drew NorthupNov 1, 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.