From: Colin Law Date: Mon, 2 Feb 2009 14:40:00 +0000 (+0000) Subject: Fix error in CGit::Run causing git error messages to be lost X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b40e83177f4f804dcc7f83d04a1e67c1eab9881c;p=tortoisegit%2FTortoiseGitJp.git 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. --- 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)