From 31bb944b1d851a6210d68299f6283baa357c72c0 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Wed, 18 Jan 2012 00:43:42 +0100 Subject: [PATCH] Fixed setting config variable after cloning a repository git_init requires the CWD point to the cloned repo. Signed-off-by: Sven Strickroth --- src/TortoiseProc/Commands/CloneCommand.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TortoiseProc/Commands/CloneCommand.cpp b/src/TortoiseProc/Commands/CloneCommand.cpp index 3dd2855b0..1579577ac 100644 --- a/src/TortoiseProc/Commands/CloneCommand.cpp +++ b/src/TortoiseProc/Commands/CloneCommand.cpp @@ -139,6 +139,7 @@ bool CloneCommand::Execute() if(dlg.m_bAutoloadPuttyKeyFile) { g_Git.m_CurrentDir = dlg.m_Directory; + SetCurrentDirectory(g_Git.m_CurrentDir); if(g_Git.SetConfigValue(_T("remote.origin.puttykeyfile"),dlg.m_strPuttyKeyFile, CONFIG_LOCAL,CP_ACP,&dlg.m_Directory)) { -- 2.11.4.GIT