diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-07-25 14:13:43 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-25 14:13:43 -0700 |
commit | 0d54ad9cd44231c33f5776f67afea924c9a589b3 (patch) | |
tree | c16c60c3d3c91a83e19d71232fd7739dd5745a59 /transport.c | |
parent | ae9ca20c85569baa8af20c8b681fe7d80ebec23d (diff) | |
parent | 68f3c079fe87caab2e116fd9a48bbdedc54be026 (diff) | |
download | git-0d54ad9cd44231c33f5776f67afea924c9a589b3.tar.gz |
Merge branch 'jk/push-scrub-url'
"git fetch http://user:pass@host/repo..." scrubbed the userinfo
part, but "git push" didn't.
* jk/push-scrub-url:
t5541: fix url scrubbing test when GPG is not set
push: anonymize URL in status output
Diffstat (limited to 'transport.c')
-rw-r--r-- | transport.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/transport.c b/transport.c index 59b911e5ff..b233e3ee5e 100644 --- a/transport.c +++ b/transport.c @@ -359,8 +359,11 @@ static void print_ok_ref_status(struct ref *ref, int porcelain) static int print_one_push_status(struct ref *ref, const char *dest, int count, int porcelain) { - if (!count) - fprintf(porcelain ? stdout : stderr, "To %s\n", dest); + if (!count) { + char *url = transport_anonymize_url(dest); + fprintf(porcelain ? stdout : stderr, "To %s\n", url); + free(url); + } switch(ref->status) { case REF_STATUS_NONE: |