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
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user