summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc4b10c)
raw | patch | inline | side by side (parent: fc4b10c)
author | Sebastian Schuberth <sschuberth@gmail.com> | |
Sat, 23 Jan 2010 14:20:28 +0000 (15:20 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 30 Jan 2010 03:37:54 +0000 (19:37 -0800) |
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>
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>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index b321c968af33b9995bdf326724f34e99894cec82..4f7dc2b73b75dfed0aac5860c77117559cdd3bcd 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
$ENV{SVN_SSH} = $ENV{GIT_SSH};
if ($^O eq 'msys') {
$ENV{SVN_SSH} =~ s/\\/\\\\/g;
+ $ENV{SVN_SSH} =~ s/(.*)/"$1"/;
}
}
}