git-svn: Use GIT_SSH setting if SVN_SSH is not set
If SVN_SSH is defined, it will be used. Else value in GIT_SSH is copied to SVN_SSH & then, only on Windows, the \s are escaped. On Windows, the shell-variables must be set as follows GIT_SSH="C:\Program Files\PuTTY\plink.exe" SVN_SSH="C:\\Program Files\\PuTTY\\plink.exe" See http://code.google.com/p/msysgit/issues/detail?id=305 [ew: fixed indentation to use tabs] Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Karthik Rajagopalan <karthikr@fastmail.fm>
Karthik R committed
Aug 18, 2009 at 18:54 UTC
f3a87d922a0333a56b5a912440aa324883019d81
1 file changed
+9
git-svn.perl
+9
@@ -21,6 +21,15 @@ $Git::SVN::default_ref_id = $ENV{GIT_SVN_ID} || 'git-svn';
21
$Git::SVN::Ra::_log_window_size = 100;
22
$Git::SVN::_minimize_url = 'unset';
23
24
+if (! exists $ENV{SVN_SSH}) {
25
+ if (exists $ENV{GIT_SSH}) {
26
+ $ENV{SVN_SSH} = $ENV{GIT_SSH};
27
+ if ($^O eq 'msys') {
28
+ $ENV{SVN_SSH} =~ s/\\/\\\\/g;
29
+ }
30
+ }
31
+}
32
+
33
$Git::SVN::Log::TZ = $ENV{TZ};
34
$ENV{TZ} = 'UTC';
35
$| = 1; # unbuffer STDOUT