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

Re: Network problems during "git svn dcommit"

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 27, 2010, 00:57 UTC
Message-ID
<20101227005739.GA32713@burratino>
In-Reply-To
<20101222115008.GA10765@raven.wolf.lan>
Josef Wolf wrote:
> I am using git-svn to track a subversion repository. This used to work
> fine so far. But today, I got a network outage during a "git svn dcommit"
> operation.
[...]
> Any hints how to fix the situation?
Yes.
To fix your repository:
 1. make backups!
 2. back out the bad commit so it is not visible with "gitk --all"
    (something like
	git reset --keep HEAD^
	git push . HEAD:refs/remotes/svn/Trunk
    )
 3. "rm -fr .git/svn/".  Note: this will delete your unhandled.log!
    Restore it from backup if you consider it precious.
 4. "git svn fetch; git svn rebase"
To fix "git svn", see [1].

Hope that helps, Jonathan

[1] http://thread.gmane.org/gmane.comp.version-control.git/136510
Previous: Josef Wolf
Message 2 of 2 in “Network problems during "git svn dcommit": need help!”
  1. Josef WolfDec 22, 2010
  2. Jonathan NiederDec 27, 2010

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.