From c7476ab8be5164f6c254b8ad7d2d4c33fc961ee5 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 12 Jul 2014 14:26:50 +0200 Subject: [PATCH] Fix C&P error Signed-off-by: Sven Strickroth --- src/TortoiseProc/GitDiff.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TortoiseProc/GitDiff.cpp b/src/TortoiseProc/GitDiff.cpp index f15879c53..4e110ca59 100644 --- a/src/TortoiseProc/GitDiff.cpp +++ b/src/TortoiseProc/GitDiff.cpp @@ -242,7 +242,7 @@ int CGitDiff::SubmoduleDiff(const CTGitPath * pPath, const CTGitPath * /*pPath2* oldhash = output.Mid(oldstart+ CString(_T("-Subproject commit")).GetLength()+1,40); start = 0; int newstart = output.Find(_T("+Subproject commit"),start); - if(oldstart<0) + if (newstart < 0) { CMessageBox::Show(NULL,_T("Subproject Diff Format error") ,_T("TortoiseGit"),MB_OK|MB_ICONERROR); return -1; -- 2.11.4.GIT