aboutsummaryrefslogtreecommitdiff
path: root/git-svnimport.perl
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-01-01 13:25:47 -0800
committerJunio C Hamano <junkio@cox.net>2006-01-05 20:28:14 -0800
commit2961e0ee8b3c49853f2da4b485d4e3851e973e9d (patch)
tree5ce104b4aa8a3e35e1aa48bc4a826ea42060e12d /git-svnimport.perl
parent6ce183216d6c4b234d4515c21a864615cd278d0b (diff)
downloadgit-2961e0ee8b3c49853f2da4b485d4e3851e973e9d.tar.gz
git-2961e0ee8b3c49853f2da4b485d4e3851e973e9d.tar.xz
svnimport: support repositories requiring SSL authentication
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> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-svnimport.perl')
-rwxr-xr-xgit-svnimport.perl6
1 files changed, 4 insertions, 2 deletions
diff --git a/git-svnimport.perl b/git-svnimport.perl
index cb241d1b5..6e3a44a2b 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;