{"thread":{"id":"20656","subject":"[PATCH][resend 2] git-svn: Use GIT_SSH setting if SVN_SSH is not set","startedAt":"2009-08-18T20:31:36Z","lastAt":"2009-08-18T20:31:36Z","messageCount":1,"participants":["Karthik R"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"121160","messageId":"4A8B0FA8.7040500@fastmail.fm","threadId":"20656","inReplyTo":null,"subject":"[PATCH][resend 2] git-svn: Use GIT_SSH setting if SVN_SSH is not set","fromName":"Karthik R","fromEmail":"karthikr@fastmail.fm","sentAt":"2009-08-18T20:31:36Z","receivedAt":"2009-08-18T20:31:36Z","isPatch":true,"sender":{"key":"karthikr@fastmail.fm","avatar":null},"body":"If SVN_SSH is defined, it will be used; else value in\nGIT_SSH is copied to SVN_SSH & then, only on Windows,\nthe \\s are escaped.\n\nOn Windows, the shell-variables must be set as follows\n    GIT_SSH=\"C:\\Program Files\\PuTTY\\plink.exe\"\n    SVN_SSH=\"C:\\\\Program Files\\\\PuTTY\\\\plink.exe\"\n\nSee http://code.google.com/p/msysgit/issues/detail?id=305\n---\nTrying again following Dscho's comment (removed MSWin32) & using\nlogic from Junio (don't muck with user's SVN_SSH; else use GIT_SSH\nto seed SVN_SSH & adjust the \\s on Windows)\n\nPrevious life of patch:\n[PATCH] GIT_SSH does not override ssh in git-svn\n[PATCH][resend] git-svn: Respect GIT_SSH setting\n\n git-svn.perl |    9 +++++++++\n 1 files changed, 9 insertions(+), 0 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex b0bfb74..ef86d10 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -21,6 +21,15 @@ $Git::SVN::default_ref_id = $ENV{GIT_SVN_ID} || \n'git-svn';\n $Git::SVN::Ra::_log_window_size = 100;\n $Git::SVN::_minimize_url = 'unset';\n \n+if (! exists $ENV{SVN_SSH}) {\n+    if (exists $ENV{GIT_SSH}) {\n+        $ENV{SVN_SSH} = $ENV{GIT_SSH};\n+        if ($^O eq 'msys') {\n+            $ENV{SVN_SSH} =~ s/\\\\/\\\\\\\\/g;\n+        }\n+    }\n+}\n+\n $Git::SVN::Log::TZ = $ENV{TZ};\n $ENV{TZ} = 'UTC';\n $| = 1; # unbuffer STDOUT\n-- \n1.5.4.3\n"}]}