From 3ae9f4b0fb9444585b7f7f87e362b0b54810ce6f Mon Sep 17 00:00:00 2001 From: Frank Li Date: Sun, 8 Feb 2009 00:07:52 +0800 Subject: [PATCH] Fix Don't add unversion problem at CommitDlg This problem happen again because wrong handle add case when fix don't commit delete file problem. Signed-off-by: Frank Li --- src/TortoiseProc/CommitDlg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TortoiseProc/CommitDlg.cpp b/src/TortoiseProc/CommitDlg.cpp index a8550b7..23e53da 100644 --- a/src/TortoiseProc/CommitDlg.cpp +++ b/src/TortoiseProc/CommitDlg.cpp @@ -395,8 +395,8 @@ void CCommitDlg::OnOK() bCheckedInExternal = true; } #endif - if( entry->m_Action & CTGitPath::LOGACTIONS_ADDED) - cmd.Format(_T("git.exe update-index --add -f -- \"%s\""),entry->GetGitPathString()); + if( entry->m_Action & CTGitPath::LOGACTIONS_UNVER) + cmd.Format(_T("git.exe add -f -- \"%s\""),entry->GetGitPathString()); else if ( entry->m_Action & CTGitPath::LOGACTIONS_DELETED) cmd.Format(_T("git.exe update-index --remove -- \"%s\""),entry->GetGitPathString()); else -- 2.11.0