Skip to content
  • Jonathan Tan's avatar
    http: redact all cookies, teach GIT_TRACE_REDACT=0 · 827e7d4d
    Jonathan Tan authored and Junio C Hamano's avatar Junio C Hamano committed
    In trace output (when GIT_TRACE_CURL is true), redact the values of all
    HTTP cookies by default. Now that auth headers (since the implementation
    of GIT_TRACE_CURL in 74c682d3
    
     ("http.c: implement the GIT_TRACE_CURL
    environment variable", 2016-05-24)) and cookie values (since this
    commit) are redacted by default in these traces, also allow the user to
    inhibit these redactions through an environment variable.
    
    Since values of all cookies are now redacted by default,
    GIT_REDACT_COOKIES (which previously allowed users to select individual
    cookies to redact) now has no effect.
    
    Signed-off-by: default avatarJonathan Tan <jonathantanmy@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    827e7d4d