]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-svn: Support custom tunnel schemes instead of SSH only
authorSebastian Schuberth <sschuberth@gmail.com>
Tue, 26 Mar 2013 21:24:38 +0000 (22:24 +0100)
committerEric Wong <normalperson@yhbt.net>
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 <wieser.eric@gmail.com>
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
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;