summaryrefslogtreecommitdiff
path: root/trace2/tr2_tgt_event.c
diff options
context:
space:
mode:
authorLibravatar Ivan Frade <ifrade@google.com>2021-11-10 23:51:29 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-11-11 10:07:44 -0800
commit0ba558ffb138f893f786d42b19689898ef456515 (patch)
treef884b9b9738ff448a3e07f548fd58590cc9162de /trace2/tr2_tgt_event.c
parentfetch-pack: redact packfile urls in traces (diff)
downloadtgif-0ba558ffb138f893f786d42b19689898ef456515.tar.xz
http-fetch: redact url on die() message
http-fetch prints the URL after failing to fetch it. This can be confusing to users (they cannot really do anything with it), and they can share by accident a sensitive URL (e.g. with credentials) while looking for help. Redact the URL unless the GIT_TRACE_REDACT variable is set to false. This mimics the redaction of other sensitive information in git, like the Authorization header in HTTP. Fix also capitalization of previous die() message (must start in lowercase). Signed-off-by: Ivan Frade <ifrade@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2/tr2_tgt_event.c')
0 files changed, 0 insertions, 0 deletions