This problem happen again because wrong handle add case when fix don't commit delete file problem.
Signed-off-by: Frank Li <lznuaa@gmail.com>
bCheckedInExternal = true;\r
}\r
#endif\r
- if( entry->m_Action & CTGitPath::LOGACTIONS_ADDED)\r
- cmd.Format(_T("git.exe update-index --add -f -- \"%s\""),entry->GetGitPathString());\r
+ if( entry->m_Action & CTGitPath::LOGACTIONS_UNVER)\r
+ cmd.Format(_T("git.exe add -f -- \"%s\""),entry->GetGitPathString());\r
else if ( entry->m_Action & CTGitPath::LOGACTIONS_DELETED)\r
cmd.Format(_T("git.exe update-index --remove -- \"%s\""),entry->GetGitPathString());\r
else\r