Skip to content

Commit 22bb7ed

Browse files
committed
Merge branch 'jk/push-scrub-url' into next
* jk/push-scrub-url: t5541: fix url scrubbing test when GPG is not set
2 parents 66765a4 + 68f3c07 commit 22bb7ed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/t5541-http-push-smart.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,10 @@ test_expect_success GPG 'push with post-receive to inspect certificate' '
369369
'
370370

371371
test_expect_success 'push status output scrubs password' '
372-
test_commit scrub &&
373-
git push --porcelain "$HTTPD_URL_USER_PASS/smart/test_repo.git" >status &&
372+
cd "$ROOT_PATH/test_repo_clone" &&
373+
git push --porcelain \
374+
"$HTTPD_URL_USER_PASS/smart/test_repo.git" \
375+
+HEAD:scrub >status &&
374376
# should have been scrubbed down to vanilla URL
375377
grep "^To $HTTPD_URL/smart/test_repo.git" status
376378
'

0 commit comments

Comments
 (0)