threads / patch / 4837

patchAllow usage of git-svnimport's -d/-D options with https

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

## tl;dr

One message between Jul 10, 2006 and Jul 10, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Diego 'Flameeyes' Pettenò· Jul 10, 2006, 19:34 UTC · lore

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 {

← back to recent threads