{"thread":{"id":"4837","subject":"[PATCH] Allow usage of git-svnimport's -d/-D options with https","startedAt":"2006-07-10T19:34:36Z","lastAt":"2006-07-10T19:34:36Z","messageCount":1,"participants":["Diego 'Flameeyes' Pettenò"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"23572","messageId":"200607102134.58247@enterprise.flameeyes.is-a-geek.org","threadId":"4837","inReplyTo":null,"subject":"[PATCH] Allow usage of git-svnimport's -d/-D options with https","fromName":"Diego 'Flameeyes' Pettenò","fromEmail":"flameeyes@gentoo.org","sentAt":"2006-07-10T19:34:36Z","receivedAt":"2006-07-10T19:34:36Z","isPatch":true,"sender":{"key":"flameeyes@gentoo.org","avatar":null},"body":"While importing an SVN https repository (from SourceForge), I noticed that the \nsvnimport script just accepts http as url scheme to use -d/-D options, while \nit seems to work fine with https too. The attached patch fixes that for me.\n\nHTH,\n-- \nDiego \"Flameeyes\" Pettenò - http://farragut.flameeyes.is-a-geek.org/\nGentoo/Alt lead, Gentoo/FreeBSD, Video, AMD64, Sound, PAM, KDE\n\n\ndiff --git a/git-svnimport.perl b/git-svnimport.perl\nindex 26dc454..9a69369 100755\n--- a/git-svnimport.perl\n+++ b/git-svnimport.perl\n@@ -209,7 +209,7 @@ if($opt_d or $opt_D) {\n \t} else {\n \t\t$svn_dir = \"\";\n \t}\n-\tif ($svn_url->scheme eq \"http\") {\n+\tif ($svn_url->scheme eq \"http\" or $svn_url->scheme eq \"https\") {\n \t\tuse LWP::UserAgent;\n \t\t$lwp_ua = LWP::UserAgent->new(keep_alive => 1, requests_redirectable => []);\n \t} else {\n"}]}