@matheusbsbs / matheus-bagliano / commits / a004fb923d
Fork 0

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>

Sebastian Schuberth committed Jan 23, 2010 at 15:20 UTC a004fb923d74c1d5500d493506b1462eb04cf017
1 file changed +1
git-svn.perl
+1
@@ -26,6 +26,7 @@ if (! exists $ENV{SVN_SSH}) {
26 $ENV{SVN_SSH} = $ENV{GIT_SSH};
27 if ($^O eq 'msys') {
28 $ENV{SVN_SSH} =~ s/\\/\\\\/g;
29 + $ENV{SVN_SSH} =~ s/(.*)/"$1"/;
30 }
31 }
32 }