OSDN Git Service

Add SSH client setting. TortoisePlink can work with password mode.
[tortoisegit/TortoiseGitJp.git] / src / Git / Git.cpp
index 09f631b..26dd3e8 100644 (file)
@@ -570,6 +570,16 @@ BOOL CGit::CheckMsysGitDir()
        }\r
        free(oldpath);\r
 \r
+       //setup ssh client\r
+       CRegString sshclient=CRegString(_T("Software\\TortoiseGit\\SSH"));\r
+       CString ssh=sshclient;\r
+//     ssh.Format(_T("\"%s\""),(CString)sshclient);\r
+\r
+       if(!ssh.IsEmpty())\r
+       {\r
+               _tputenv_s(_T("GIT_SSH"),ssh);\r
+       }\r
+\r
        CString cmd,out;\r
        cmd=_T("git.exe --version");\r
        if(g_Git.Run(cmd,&out,CP_UTF8))\r