summaryrefslogtreecommitdiff
path: root/perl/Git
diff options
context:
space:
mode:
authorSebastian Schuberth <sschuberth@gmail.com>2013-03-26 22:24:38 +0100
committerEric Wong <normalperson@yhbt.net>2013-03-27 04:28:04 +0000
commit3747c015704399dea1aa7ae6569a507e5727e20b (patch)
tree5c623d052e987a9dc5627a35115f1b9ef97d753a /perl/Git
parent2bba2f0e6542d541e9f27653d8c9d5fc8d0e679c (diff)
downloadgit-3747c015704399dea1aa7ae6569a507e5727e20b.tar.gz
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>
Diffstat (limited to 'perl/Git')
-rw-r--r--perl/Git/SVN/Ra.pm2
1 files changed, 1 insertions, 1 deletions
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;