Skip to content
Snippets Groups Projects
Commit 6844fc80 authored by Christian Couder's avatar Christian Couder Committed by Junio C Hamano
Browse files

Fix tracing when GIT_TRACE is set to an empty string.

parent 8f977780
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment