hugemeow
hugemeow

Reputation: 7985

what i can do after git svn clone fails?

my issue is not the same as this git-svn clone fails unexpectedly, since it can be solved by remove --no-metadata option, i have no such option in my command, my commad is simply as:

git svn clone -s svn://xxx.xxx

times amd times again, i failed to clone code from svn repo:( the error message is as follows:

r506 = 82a01de65882f5bd800aca5a6f3556ba940ea3f5 (refs/remotes/trunk)
Found possible branch point: svn://svn.nginx.org/nginx/trunk => svn://svn.nginx.org/nginx/tags/release-0.1.27, 506
Found branch parent: (refs/remotes/tags/release-0.1.27) 82a01de65882f5bd800aca5a6f3556ba940ea3f5
Following parent with do_switch
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/SVN/Core.pm line 584.
Network connection closed unexpectedly:  at /usr/libexec/git-core/git-svn line 3136


real    8m13.819s
user    0m24.079s
sys     0m44.250s
[root@home git-test]# echo $?
1

what i can do after i fails to clone code from svn repo:( start from the beginning? and fail again? why this happens, is this the problem of git, svn, or git-svn?

Upvotes: 1

Views: 628

Answers (1)

user1338062
user1338062

Reputation: 12765

Try specifying a limited number of revisions with the --revision parameter. You most likely do not need the whole history, especially if the project has a long history.

From the manual page:

This allows revision ranges for partial/cauterized history to be supported. $NUMBER, $NUMBER1:$NUMBER2 (numeric ranges), $NUMBER:HEAD, and BASE:$NUMBER are all supported.

So for example --revision 3000:HEAD would fetch revisions starting from r3000.

Upvotes: 1

Related Questions