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 <wieser.eric@gmail.com> Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com> Signed-off-by: Eric Wong <normalperson@yhbt.net>
Sebastian Schuberth committed
Mar 26, 2013 at 22:24 UTC
3747c015704399dea1aa7ae6569a507e5727e20b
1 file changed
+1
-1
perl/Git/SVN/Ra.pm
+1
-1
@@ -295,7 +295,7 @@ sub gs_do_switch {
295
my $full_url = add_path_to_url( $self->url, $path );
296
my ($ra, $reparented);
297
298
- if ($old_url =~ m#^svn(\+ssh)?://# ||
298
+ if ($old_url =~ m#^svn(\+\w+)?://# ||
299
($full_url =~ m#^https?://# &&
300
canonicalize_url($full_url) ne $full_url)) {
301
$_[0] = undef;