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

[BUG] rebase not recovering gracefully from repack error

From
YDYann Dirson <ydirson@free.fr>
Date
Sep 8, 2013, 20:46 UTC
Message-ID
<20130908204643.GD8767@home.lan>
(patches|REBASE 8/9)$ git rebase --continue
Applying: Check for __unix__ instead of __linux
Applying: Completely disable crash handler on archs other than i386 and amd64
Auto packing the repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more information.
error: Could not read a7d470051f53f4e4c9247df752583868a79ec70b
fatal: Failed to traverse parents of commit e6d2f264969207e337953717c260d37daa0a8554
error: failed to run repack
(patches|REBASE 10/9)$ cat .git/rebase-apply/next 
10
(patches|REBASE 10/9)$ 

The last patch has been dealt with and I consider the rebase done. Rebase would be bombing out without cleaning behind it when the auto repack fails ?

On another aspect, I find the repack error is suspect: "git fsck --no-dangling" has nothing to complain about, and the missing commit is the real ancestor of a grafted commit. I suppose it has been gc'd by a buggy git version, as I recall seeing such a fix on the list some time ago. (yes, I shouldn't be using grafts any more, but that particular one dates back to 2006 ;)

-- 
Yann

[v1.8.4]
Message 1 of 1 in “[BUG] rebase not recovering gracefully from repack error”
  1. Yann DirsonSep 8, 2013

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.