While importing an SVN https repository (from SourceForge), I noticed that the svnimport script just accepts http as url scheme to use -d/-D options, while it seems to work fine with https too. The attached patch fixes that for me. HTH, -- Diego "Flameeyes" Pettenò - http://farragut.flameeyes.is-a-geek.org/ Gentoo/Alt lead, Gentoo/FreeBSD, Video, AMD64, Sound, PAM, KDE
diff --git a/git-svnimport.perl b/git-svnimport.perl index 26dc454..9a69369 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -209,7 +209,7 @@ if($opt_d or $opt_D) { } else { $svn_dir = ""; } - if ($svn_url->scheme eq "http") { + if ($svn_url->scheme eq "http" or $svn_url->scheme eq "https") { use LWP::UserAgent; $lwp_ua = LWP::UserAgent->new(keep_alive => 1, requests_redirectable => []); } else {
Attachment:
pgpCy2G1bxq0K.pgp
Description: PGP signature