# [PATCH] Allow usage of git-svnimport's -d/-D options with https

1 messages from 2006-07-10 to 2006-07-10. Participants: Diego 'Flameeyes' Pettenò.
Thread: https://gitlist.dev/t/4837

## Diego 'Flameeyes' Pettenò, 2006-07-10 19:34

Subject: [PATCH] Allow usage of git-svnimport's -d/-D options with https
Message-ID: <200607102134.58247@enterprise.flameeyes.is-a-geek.org>
URL: https://gitlist.dev/e/200607102134.58247%40enterprise.flameeyes.is-a-geek.org

```
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 {

```
