diff options
author | Ivan Frade <ifrade@google.com> | 2021-11-10 23:51:29 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-11-11 10:07:44 -0800 |
commit | 0ba558ffb138f893f786d42b19689898ef456515 (patch) | |
tree | f884b9b9738ff448a3e07f548fd58590cc9162de /contrib/credential/netrc | |
parent | fetch-pack: redact packfile urls in traces (diff) | |
download | tgif-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 'contrib/credential/netrc')
0 files changed, 0 insertions, 0 deletions