From f271a20e328cc9efc76bc986ead3e21f6afb26da Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Thu, 22 Mar 2012 21:32:36 +0100 Subject: [PATCH] CommitDlg: Do not continue committing if user canceled branch creation Signed-off-by: Sven Strickroth --- src/TortoiseProc/CommitDlg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TortoiseProc/CommitDlg.cpp b/src/TortoiseProc/CommitDlg.cpp index a955efbcc..5196e7c02 100644 --- a/src/TortoiseProc/CommitDlg.cpp +++ b/src/TortoiseProc/CommitDlg.cpp @@ -2162,7 +2162,8 @@ int CCommitDlg::CheckHeadDetach() _T("TortoiseGit"),MB_YESNOCANCEL | MB_ICONWARNING); if(retval == IDYES) { - CAppUtils::CreateBranchTag(FALSE,NULL,true); + if (CAppUtils::CreateBranchTag(FALSE, NULL, true) == FALSE) + return 1; } else if (retval == IDCANCEL) return 1; -- 2.11.4.GIT