OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f97778
)
Fix tracing when GIT_TRACE is set to an empty string.
author
Christian Couder
<chriscool@tuxfamily.org>
Sat, 14 Oct 2006 14:05:25 +0000
(16:05 +0200)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 14 Oct 2006 19:07:05 +0000
(12:07 -0700)
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
trace.c
patch
|
blob
|
history
diff --git
a/trace.c
b/trace.c
index
f9efc91
..
495e5ed
100644
(file)
--- a/
trace.c
+++ b/
trace.c
@@
-55,7
+55,8
@@
static int get_trace_fd(int *need_close)
{
char *trace = getenv("GIT_TRACE");
- if (!trace || !strcmp(trace, "0") || !strcasecmp(trace, "false"))
+ if (!trace || !strcmp(trace, "") ||
+ !strcmp(trace, "0") || !strcasecmp(trace, "false"))
return 0;
if (!strcmp(trace, "1") || !strcasecmp(trace, "true"))
return STDERR_FILENO;