Reputation: 1183
I have cloned my svn repo into git and everyday i am doing git svn fetch (i only do changes in SVN) but i am planning to move to git and i keep the git repo in sync for the day since the svn clone tooke me 2 weeks (yeah it's a big repo).
Anyway the git svn fetch has worked fine every day until 2 days ago where i now get
Incomplete data: Delta source ended unexpectedly at /usr/lib/perl5/site_perl/Git/SVN/Ra.pm line 290
at a specific revision. I tried the different suggestions online about git svn reset and going back some revisions and i went about 20 revisions back with no luck. I also tried to run :
git config --get core.autocrlf
which gave true
.
I know that the svn repo is working good, i have no issues doing svn up.
Any ideas how i can get back on track to sync again ? I am stuck without ideas what to try.
I might reveal one issue. I don't recall but before running the issue i might have had a disk full on the disk where the repo is when i tried the fetch. Maybe that destroyed something ?
/donnib
Upvotes: 2
Views: 1694
Reputation: 349
I resolved similar problem using -r param. My case was as follow:
# .git/config
[svn-remote "svn"]
url = http://some-repo/path
fetch = /trunk:refs/remotes/trunk
fetch = branches/dev:refs/remotes/dev
Upvotes: 0
Reputation: 15976
Using --ignore-paths
sometimes helps, so the steps are:
git svn reset -r <svn-version-before-error>
git svn fetch --ignore-paths=/branches/badbranch
Upvotes: 0
Reputation: 545
Fetch should continue from the SomeSVNRevisionNumberBeforeTheProblematicOne.
The most probable reason why this happened is concurrency between two git instances running simultaneously on the same repository.
Upvotes: 1