git-svn: Support custom tunnel schemes instead of SSH only
authorSebastian Schuberth <redacted>
Tue, 26 Mar 2013 21:24:38 +0000 (22:24 +0100)
committerEric Wong <redacted>
Wed, 27 Mar 2013 04:28:04 +0000 (04:28 +0000)
This originates from an msysgit pull request, see:

https://github.com/msysgit/git/pull/58

Signed-off-by: Eric Wieser <redacted>
Signed-off-by: Sebastian Schuberth <redacted>
Signed-off-by: Eric Wong <redacted>
perl/Git/SVN/Ra.pm

index 049c97bfafac143e552f2e8ddb988292a6328df2..6a212eb7a8182acc00eb597d2100310b7855738a 100644 (file)
@@ -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;
git clone https://git.99rst.org/PROJECT