Skip to content

Commit a004fb9

Browse files
sschuberthgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fc4b10c commit a004fb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-svn.perl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
$ENV{SVN_SSH} = $ENV{GIT_SSH};
2727
if ($^O eq 'msys') {
2828
$ENV{SVN_SSH} =~ s/\\/\\\\/g;
29+
$ENV{SVN_SSH} =~ s/(.*)/"$1"/;
2930
}
3031
}
3132
}

0 commit comments

Comments
 (0)