OSDN Git Service

Add return value handle of format patch
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / Commands / FormatPatchCommand.cpp
index 56a5a65..d7ef5ba 100644 (file)
@@ -57,11 +57,12 @@ bool FormatPatchCommand::Execute()
 \r
                CProgressDlg progress;\r
                progress.m_GitCmd=cmd;\r
 \r
                CProgressDlg progress;\r
                progress.m_GitCmd=cmd;\r
-               if(progress.DoModal()==IDOK)\r
-                       return TRUE;\r
-\r
-               return TRUE;\r
+               progress.DoModal();\r
+               \r
+               CShellUpdater::Instance().AddPathForUpdate(CTGitPath(dlg.m_Dir));\r
+               CShellUpdater::Instance().Flush();\r
                \r
                \r
+               return !dlg.m_GitStatus;\r
        }\r
        return FALSE;\r
 }\r
        }\r
        return FALSE;\r
 }\r