clone/fetch: anonymize URLs in the reflog
commit46da295a77066994a663a47dc044f6c6fe582d26
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 4 Jun 2020 20:08:29 +0000 (4 20:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Jun 2020 20:20:21 +0000 (4 13:20 -0700)
treef4b2161e2e1a58b54b68414ce556aede8a7e8832
parent274b9cc25322d9ee79aa8e6d4e86f0ffe5ced925
clone/fetch: anonymize URLs in the reflog

Even if we strongly discourage putting credentials into the URLs passed
via the command-line, there _is_ support for that, and users _do_ do
that.

Let's scrub them before writing them to the reflog.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c
builtin/fetch.c
t/t5541-http-push-smart.sh