From 1783dc21068a632309c320dc47b06afa4d2b5c88 Mon Sep 17 00:00:00 2001 From: Sup Yut Sum Date: Wed, 12 Aug 2015 23:25:17 +0800 Subject: [PATCH] Fix Switch and then Commit but then could not Push Signed-off-by: Sup Yut Sum --- src/TortoiseProc/AppUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TortoiseProc/AppUtils.cpp b/src/TortoiseProc/AppUtils.cpp index c574536e4..6b11aec85 100644 --- a/src/TortoiseProc/AppUtils.cpp +++ b/src/TortoiseProc/AppUtils.cpp @@ -1337,6 +1337,7 @@ bool CAppUtils::PerformSwitch(const CString& ref, bool bForce /* false */, const postCmdList.push_back(PostCmd(IDI_COMMIT, IDS_MENUCOMMIT, []{ CTGitPathList pathlist; CTGitPathList selectedlist; + pathlist.AddPath(CTGitPath()); bool bSelectFilesForCommit = !!DWORD(CRegStdDWORD(_T("Software\\TortoiseGit\\SelectFilesForCommit"), TRUE)); CString str; Commit(CString(), false, str, pathlist, selectedlist, bSelectFilesForCommit); -- 2.11.4.GIT