aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git.txt
diff options
context:
space:
mode:
authorIvan Frade <ifrade@google.com>2021-11-10 23:51:28 +0000
committerJunio C Hamano <gitster@pobox.com>2021-11-11 10:07:43 -0800
commit88e9b1e3fcbd3a8edcf1d54528c49f8237906aba (patch)
tree7fdb889a781c5e3b6f57a85a9cde0c4a861eec11 /Documentation/git.txt
parente9e5ba39a78c8f5057262d49e261b42a8660d5b9 (diff)
downloadgit-88e9b1e3fcbd3a8edcf1d54528c49f8237906aba.tar.gz
fetch-pack: redact packfile urls in traces
In some setups, packfile uris act as bearer token. It is not recommended to expose them plainly in logs, although in special circunstances (e.g. debug) it makes sense to write them. Redact the packfile URL paths by default, unless the GIT_TRACE_REDACT variable is set to false. This mimics the redacting of the Authorization header in HTTP. Signed-off-by: Ivan Frade <ifrade@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git.txt')
-rw-r--r--Documentation/git.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index d63c65e67d..c91aa2737f 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -832,8 +832,9 @@ for full details.
`GIT_TRACE_REDACT`::
By default, when tracing is activated, Git redacts the values of
- cookies, the "Authorization:" header, and the "Proxy-Authorization:"
- header. Set this variable to `0` to prevent this redaction.
+ cookies, the "Authorization:" header, the "Proxy-Authorization:"
+ header and packfile URIs. Set this variable to `0` to prevent this
+ redaction.
`GIT_LITERAL_PATHSPECS`::
Setting this variable to `1` will cause Git to treat all