diff options
-rwxr-xr-x | t/t5541-http-push-smart.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/t/t5541-http-push-smart.sh b/t/t5541-http-push-smart.sh index 8d08e06327..9593fc17f3 100755 --- a/t/t5541-http-push-smart.sh +++ b/t/t5541-http-push-smart.sh @@ -369,8 +369,10 @@ test_expect_success GPG 'push with post-receive to inspect certificate' ' ' test_expect_success 'push status output scrubs password' ' - test_commit scrub && - git push --porcelain "$HTTPD_URL_USER_PASS/smart/test_repo.git" >status && + 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 ' |