I am converting my svn repo to git. It is a very large repo and it keep failing, therefore I have to clone only part of it. I used the following command:
git svn clone -r100000:HEAD https://svn.myserver.com/project/ .
It completed succesfully, but I only have the latest few commits. Is there anyway to continue cloning the earlier commits?
P.S: cloning the entire repo without -r always result in RA layer request failed: REPORT request failed on 'svn/project/!svn/vcc/default': ... could not read chunk size: Secure connection truncated ... Sometimes, it is after a few days... so I decided to abandon it and clone only partially
EDIT: Add the error message
RA layer request failed: REPORT request failed on '/svn/project/!svn/vcc/default': REPORT of '/svn/project/!svn/vcc/default': Could not read chunk size: Secure connection truncated (https://svn.myserver.com) at /usr/lib/perl5/site_perl/Git/SVN/Ra.pm line 282
If you want the entire history, why not start at your svn repo's rev 1? Granted it will take a while, but you could do it in parts. For example:
git svn clone -r1:10000 https://svn.myserver.com/project/ .
Once that completes cd into project and run:
git svn fetch svn -r10000:20000
you can even overlap:
git svn fetch svn -r9997:20000
and it'll skip past the pieces it already got. You may just not want to create gaps.
And I recognize that you've tried to pull it all before without any -r spec and got errors, but maybe doing it in sections will get past that. If you do get an error, try running the same command again. In using git svn clone
in the past I've had many cases of it losing connection or having random errors, but cd-ing into the project and git svn fetch
or rebase
-ing (sometimes repeatedly) seems to keep picking up where it left off before.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With