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

Re: git svn rebase problem

From
John Tapsell <johnflux@gmail.com>
Date
May 16, 2009, 03:52 UTC
Message-ID
<43d8ce650905152052w351f7766p3f7a4528c714c049@mail.gmail.com>
In-Reply-To
<32541b130905151653u436f3c5cwcf1d896c96148efa@mail.gmail.com>
2009/5/16 Avery Pennarun <apenwarr@gmail.com>:
Show 6 quoted lines
> On Fri, May 15, 2009 at 5:21 PM, David H. Lynch J.r <ml@dlasys.net> wrote:
>> A few days ago I did an
>> git svn rebase
>>
>> The rebase took a while and after it completed reported
>> fatal: bad object HEAD

We had this come up about once a week when using http as the transport. After switching most people over to ssh the problems disappeared. We never managed to find out why.

Show 35 quoted lines
>> git status reports
>> root@hp-dhlii:/usr/src/pico/git# git status
>> # Not currently on any branch.
>> fatal: bad object HEAD
>>
>> and git fsck reports
>> root@hp-dhlii:/usr/src/pico/git# git fsck
>> dangling blob eb3afb4aa3aaf0003bac601a5db4fd76aafa2a87
>> dangling commit 5c496db25007c17c325f294bb8324097c9bc407d
>>
>> How can I recover without downloading the entire repository again which
>> could take days?
>
> I don't know how this would happen; it would be great if you could
> find reproduction steps and send them in, or if you had the complete
> git rebase log, some of which probably explains the problem.
>
> You can probably recover your pre-rebased repository using 'git
> reflog'.  Look through the reflog to find the commit you want, then do
> something like
>
>    git checkout whatever-the-commit-id-was-that-you-got-from-git-reflog
>
> and then optionally
>
>    git checkout -b master
>
> Good luck.
>
> Avery
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
Previous: Avery PennarunNext: Matthias Andree
Message 3 of 6 in “git svn rebase problem”
  1. David H. Lynch J.rMay 15, 2009
  2. Avery PennarunMay 15, 2009
  3. John TapsellMay 16, 2009
  4. Matthias AndreeMay 18, 2009
  5. Avery PennarunMay 18, 2009
  6. Miles BaderMay 19, 2009

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.