Skip to content

Commit

Permalink
svnimport: support repositories requiring SSL authentication
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Wong authored and Junio C Hamano committed Jan 6, 2006
1 parent 6ce1832 commit 2961e0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions git-svnimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2961e0e

Please sign in to comment.