From b40e83177f4f804dcc7f83d04a1e67c1eab9881c Mon Sep 17 00:00:00 2001 From: Colin Law Date: Mon, 2 Feb 2009 14:40:00 +0000 Subject: [PATCH] Fix error in CGit::Run causing git error messages to be lost In CGit::Run if git.exe failed with an exit code then the message was not picked up. --- src/Git/Git.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Git/Git.cpp b/src/Git/Git.cpp index 26dd3e8..2eb30f6 100644 --- a/src/Git/Git.cpp +++ b/src/Git/Git.cpp @@ -148,13 +148,10 @@ int CGit::Run(CString cmd, CString* output,int code) int ret; ret=Run(cmd,&vector); - if(ret) - return ret; - vector.push_back(0); StringAppend(output,&(vector[0]),code); - return 0; + return ret; } CString CGit::GetUserName(void) -- 2.11.0