OSDN Git Service

Fixed issue #232: "No Commit" Option always acitve
authorFrank Li <lznuaa@gmail.com>
Mon, 30 Nov 2009 14:44:17 +0000 (22:44 +0800)
committerFrank Li <lznuaa@gmail.com>
Tue, 1 Dec 2009 08:10:32 +0000 (16:10 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
src/TortoiseProc/Commands/MergeCommand.cpp
src/TortoiseProc/MergeDlg.cpp

index f3feefc..4781208 100644 (file)
@@ -39,7 +39,7 @@ bool MergeCommand::Execute()
                if(dlg.m_bSquash)\r
                        squash=_T("--squash");\r
 \r
-               if(dlg.m_bNoCommit);\r
+               if(dlg.m_bNoCommit)\r
                        nocommit=_T("--no-commit");\r
 \r
                if(!dlg.m_strLogMesage.IsEmpty())\r
index 78faada..514be6f 100644 (file)
@@ -38,6 +38,9 @@ CMergeDlg::CMergeDlg(CWnd* pParent /*=NULL*/)
 {\r
        \r
        m_pDefaultText = _T("<Auto Generated by Git>");\r
+       m_bNoFF=false;\r
+       m_bSquash=false;\r
+       m_bNoCommit=false;\r
        \r
 }\r
 \r