OSDN Git Service
(root)
/
tortoisegit
/
TortoiseGitJp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a5017c
)
Fix error in CGit::Run causing git error messages to be lost
author
Colin Law
<colin@clanlaw.org.uk>
Mon, 2 Feb 2009 14:40:00 +0000
(14:40 +0000)
committer
Frank Li
<lznuaa@gmail.com>
Mon, 2 Feb 2009 14:57:52 +0000
(22:57 +0800)
In CGit::Run if git.exe failed with an exit code then the message
was not picked up.
src/Git/Git.cpp
patch
|
blob
|
history
diff --git
a/src/Git/Git.cpp
b/src/Git/Git.cpp
index
26dd3e8
..
2eb30f6
100644
(file)
--- 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;
\r
ret=Run(cmd,&vector);
\r
\r
- if(ret)
\r
- return ret;
\r
-
\r
vector.push_back(0);
\r
\r
StringAppend(output,&(vector[0]),code);
\r
- return
0
;
\r
+ return
ret
;
\r
}
\r
\r
CString CGit::GetUserName(void)
\r