From: Sebastian Schuberth Date: Tue, 26 Mar 2013 21:24:38 +0000 (+0100) Subject: git-svn: Support custom tunnel schemes instead of SSH only X-Git-Tag: v1.8.3-rc0~163^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/3747c015704399dea1aa7ae6569a507e5727e20b?ds=inline;hp=--cc git-svn: Support custom tunnel schemes instead of SSH only This originates from an msysgit pull request, see: https://github.com/msysgit/git/pull/58 Signed-off-by: Eric Wieser Signed-off-by: Sebastian Schuberth Signed-off-by: Eric Wong --- 3747c015704399dea1aa7ae6569a507e5727e20b diff --git a/perl/Git/SVN/Ra.pm b/perl/Git/SVN/Ra.pm index 049c97bfaf..6a212eb7a8 100644 --- a/perl/Git/SVN/Ra.pm +++ b/perl/Git/SVN/Ra.pm @@ -295,7 +295,7 @@ sub gs_do_switch { my $full_url = add_path_to_url( $self->url, $path ); my ($ra, $reparented); - if ($old_url =~ m#^svn(\+ssh)?://# || + if ($old_url =~ m#^svn(\+\w+)?://# || ($full_url =~ m#^https?://# && canonicalize_url($full_url) ne $full_url)) { $_[0] = undef;