Thread (34 messages) 34 messages, 6 authors, 2021-11-12

Re: [PATCH v4 2/2] http-fetch: redact url on die() message

flat view

From: Junio C Hamano <hidden>
Date: 2021-10-29 23:18:20

Ævar Arnfjörð Bjarmason [off-list ref] writes:
quoted
+			if (!git_env_bool("GIT_TRACE_REDACT", 1) || !nurl) {
+				die("Unable to get pack file %s\n%s", preq->url,
+				    curl_errorstr);
small nit: arrange if's from "if (cheap || expensive)", i.e. no need for
getenv() if !nurl, but maybe compilers are smart enough for that...
They typically do not see what happens inside git_env_bool() while
compling this compilation unit, and cannot tell if the programmer
wanted to call it first for its side effects, hence they cannot
swap them safely.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help