t5541: fix url scrubbing test when GPG is not set
[gitweb.git] / t / t5541-http-push-smart.sh
index 8d08e0632719478766d705aa2625d50a2699ee23..9593fc17f36650f8e02fdae1dafd1419d84f71f3 100755 (executable)
@@ -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
 '