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

[PATCH] svnimport: support repositories requiring SSL authentication

From
EWEric Wong <normalperson@yhbt.net>
Date
Jan 1, 2006, 21:25 UTC
Message-ID
<20060101212546.GI3963@mail.yhbt.net>

I looked at svn-mirror to see how it did this, seems about right. "It works for me" when using it against https://svn.musicpd.org

tested command-line: git-svnimport -C mpc -i -m -v  \
	-T mpc/trunk -b mpc/branches -t mpc/tags https://svn.musicpd.org
Signed-off-by: Eric Wong <normalperson@yhbt.net>
---
 git-svnimport.perl |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
926c84c0c96e43ca0341b541ed23e0f3874b8171
diff --git a/git-svnimport.perl b/git-svnimport.perl
index cb241d1..6e3a44a 100755
--- a/git-svnimport.perl
+++ b/git-svnimport.perl
@@ -96,8 +96,10 @@ sub new {
 sub conn {
 	my $self = shift;
 	my $repo = $self->{'fullrep'};
-	my $s = SVN::Ra->new($repo);
-
+	my $auth = SVN::Core::auth_open ([SVN::Client::get_simple_provider,
+			  SVN::Client::get_ssl_server_trust_file_provider,
+			  SVN::Client::get_username_provider]);
+	my $s = SVN::Ra->new(url => $repo, auth => $auth);
 	die "SVN connection to $repo: $!\n" unless defined $s;
 	$self->{'svn'} = $s;
 	$self->{'repo'} = $repo;
-- 
1.0.GIT
Message 1 of 1 in “svnimport: support repositories requiring SSL authentication”
  1. svnimport: support repositories requiring SSL authenticationEric Wong, Jan 1, 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.