git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] If deriving SVN_SSH from GIT_SSH on msys, also add quotes
@ 2010-01-23 10:22 Sebastian Schuberth
  2010-01-23 11:22 ` Sverre Rabbelier
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Schuberth @ 2010-01-23 10:22 UTC (permalink / raw)
  To: git; +Cc: Johannes Schindelin, jugg

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 save 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>
---
 git-svn.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/git-svn.perl b/git-svn.perl
index 650c9e5..ef39a9f 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"/;
 		}
 	}
 }
-- 
1.6.6.265.ga0f40

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-01-23 20:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-23 10:22 [PATCH] If deriving SVN_SSH from GIT_SSH on msys, also add quotes Sebastian Schuberth
2010-01-23 11:22 ` Sverre Rabbelier
2010-01-23 14:20   ` Sebastian Schuberth
2010-01-23 19:33     ` Junio C Hamano
2010-01-23 20:11       ` Sebastian Schuberth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).