aboutsummaryrefslogtreecommitdiff
path: root/t/t5541-http-push-smart.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-07-25 14:13:43 -0700
committerJunio C Hamano <gitster@pobox.com>2016-07-25 14:13:43 -0700
commit0d54ad9cd44231c33f5776f67afea924c9a589b3 (patch)
treec16c60c3d3c91a83e19d71232fd7739dd5745a59 /t/t5541-http-push-smart.sh
parentae9ca20c85569baa8af20c8b681fe7d80ebec23d (diff)
parent68f3c079fe87caab2e116fd9a48bbdedc54be026 (diff)
downloadgit-0d54ad9cd44231c33f5776f67afea924c9a589b3.tar.gz
git-0d54ad9cd44231c33f5776f67afea924c9a589b3.tar.xz
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 't/t5541-http-push-smart.sh')
-rwxr-xr-xt/t5541-http-push-smart.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t5541-http-push-smart.sh b/t/t5541-http-push-smart.sh
index ca6becfe3..4840c71f0 100755
--- a/t/t5541-http-push-smart.sh
+++ b/t/t5541-http-push-smart.sh
@@ -368,5 +368,14 @@ test_expect_success GPG 'push with post-receive to inspect certificate' '
test_cmp expect "$HTTPD_DOCUMENT_ROOT_PATH/push-cert-status"
'
+test_expect_success 'push status output scrubs password' '
+ cd "$ROOT_PATH/test_repo_clone" &&
+ git push --porcelain \
+ "$HTTPD_URL_USER_PASS/smart/test_repo.git" \
+ +HEAD:scrub >status &&
+ # should have been scrubbed down to vanilla URL
+ grep "^To $HTTPD_URL/smart/test_repo.git" status
+'
+
stop_httpd
test_done