From 7ce23ead44fdcbcc6e4f618c6b913d3e0bad530d Mon Sep 17 00:00:00 2001 From: Frank Li Date: Mon, 2 Feb 2009 13:18:50 +0800 Subject: [PATCH 1/1] Add SSH client setting. TortoisePlink can work with password mode. When Git clone, password input box can prompt. But have not tested authorize key mode. Package and download information still can't captured. Signed-off-by: Frank Li --- src/Git/Git.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Git/Git.cpp b/src/Git/Git.cpp index 09f631b..26dd3e8 100644 --- a/src/Git/Git.cpp +++ b/src/Git/Git.cpp @@ -570,6 +570,16 @@ BOOL CGit::CheckMsysGitDir() } free(oldpath); + //setup ssh client + CRegString sshclient=CRegString(_T("Software\\TortoiseGit\\SSH")); + CString ssh=sshclient; +// ssh.Format(_T("\"%s\""),(CString)sshclient); + + if(!ssh.IsEmpty()) + { + _tputenv_s(_T("GIT_SSH"),ssh); + } + CString cmd,out; cmd=_T("git.exe --version"); if(g_Git.Run(cmd,&out,CP_UTF8)) -- 2.11.0