git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
DPDiego 'Flameeyes' Pettenò <flameeyes@gentoo.org>
Date
Jul 10, 2006, 19:34 UTC
Message-ID
<200607102134.58247@enterprise.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 {
Message 1 of 1 in “Allow usage of git-svnimport's -d/-D options with https”
  1. Allow usage of git-svnimport's -d/-D options with httpsDiego 'Flameeyes' Pettenò, Jul 10, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.