* Network problems during "git svn dcommit": need help!
@ 2010-12-22 11:50 Josef Wolf
2010-12-27 0:57 ` Network problems during "git svn dcommit" Jonathan Nieder
0 siblings, 1 reply; 2+ messages in thread
From: Josef Wolf @ 2010-12-22 11:50 UTC (permalink / raw)
To: git
Hello,
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. I can see with gitk, that not all of my commits made it to
the svn repositoy. I tried "git svn rebase" and "git svn dcommit" to
resume, but they act as if I had no local commits.
Any hints how to fix the situation?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Network problems during "git svn dcommit"
2010-12-22 11:50 Network problems during "git svn dcommit": need help! Josef Wolf
@ 2010-12-27 0:57 ` Jonathan Nieder
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Nieder @ 2010-12-27 0:57 UTC (permalink / raw)
To: Josef Wolf; +Cc: git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-27 0:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-22 11:50 Network problems during "git svn dcommit": need help! Josef Wolf
2010-12-27 0:57 ` Network problems during "git svn dcommit" Jonathan Nieder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).