From 16b49bcfde92a9c392173fb8182b51b51a5e5e0f Mon Sep 17 00:00:00 2001 From: Sander Cox Date: Fri, 16 Jan 2015 16:35:58 +0100 Subject: [PATCH] Uncheck autoload putty key for git://, http://, and https:// clone URLs Signed-off-by: Sander Cox Signed-off-by: Sven Strickroth --- src/TortoiseProc/CloneDlg.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/TortoiseProc/CloneDlg.cpp b/src/TortoiseProc/CloneDlg.cpp index 681477b17..cb1b9e6f1 100644 --- a/src/TortoiseProc/CloneDlg.cpp +++ b/src/TortoiseProc/CloneDlg.cpp @@ -379,6 +379,14 @@ void CCloneDlg::OnCbnEditchangeUrlcombo() m_Directory += _T('\\'); m_Directory += m_ModuleName; + // check if URL starts with http://, https:// or git:// in those cases loading putty keys is only + // asking for passwords for keys that are never used + if (url.Find(L"http://", 0) >= 0 || url.Find(L"https://", 0) >= 0 || url.Find(L"git://", 0) >= 0) + m_bAutoloadPuttyKeyFile = false; + else + m_bAutoloadPuttyKeyFile = m_regUseSSHKey && CAppUtils::IsSSHPutty(); + + this->UpdateData(FALSE); } -- 2.11.4.GIT