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

Re: git svn rebase problem

From
MAMatthias Andree <matthias.andree@gmx.de>
Date
May 18, 2009, 08:38 UTC
Message-ID
<op.ut4aagco1e62zd@merlin.emma.line.org>
In-Reply-To
<4A0DDCC5.4010001@dlasys.net>
Am 15.05.2009, 23:21 Uhr, schrieb David H. Lynch J.r <ml@dlasys.net>:
Show 23 quoted lines
> For some time I am using git svn to manage a local copy of a remote svn
> repository.
>
> The svn repository has no branches.
>
> A few days ago I did an
> git svn rebase
>
> The rebase took a while and after it completed reported
> fatal: bad object HEAD
>
> 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?

Have you been working on a branch other than the one that git-svn created for you? If so, you may have to "git checkout" the original branch before being able to "git svn rebase".

Branches and git-svn don't mix.
-- 
Matthias Andree
Previous: John TapsellNext: Avery Pennarun
Message 4 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.