summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorSebastian Schuberth <sschuberth@gmail.com>2010-01-23 14:20:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-30 03:37:54 (GMT)
commita004fb923d74c1d5500d493506b1462eb04cf017 (patch)
treee98d0b3749847439d2155a697aa6f8fc42446c37 /git-svn.perl
parentfc4b10cd2dd4f23443d1c639b9c38a604fff3aa3 (diff)
downloadgit-a004fb923d74c1d5500d493506b1462eb04cf017.zip
git-a004fb923d74c1d5500d493506b1462eb04cf017.tar.gz
git-a004fb923d74c1d5500d493506b1462eb04cf017.tar.bz2
If deriving SVN_SSH from GIT_SSH on msys, also add quotes
In contrast to GIT_SSH, SVN_SSH requires quotes for paths that contain spaces. As GIT_SSH will not work if it contains quotes, it is safe to assume it never contains quotes. Also, adding quotes to SVN_SSH for paths that do not contain spaces does no harm. So we always add quotes when deriving SVN_SSH from GIT_SSH on msys. This fixes msysGit issue 385, see http://code.google.com/p/msysgit/issues/detail?id=385 Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-svn.perl b/git-svn.perl
index b321c96..4f7dc2b 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -26,6 +26,7 @@ if (! exists $ENV{SVN_SSH}) {
$ENV{SVN_SSH} = $ENV{GIT_SSH};
if ($^O eq 'msys') {
$ENV{SVN_SSH} =~ s/\\/\\\\/g;
+ $ENV{SVN_SSH} =~ s/(.*)/"$1"/;
}
}
}