Skip to content

Commit 0a42ac0

Browse files
committed
t5516: do not assume the "matching" push is the default
Signed-off-by: Junio C Hamano <[email protected]>
1 parent f10b7fc commit 0a42ac0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

t/t5516-fetch-push.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ test_expect_success 'push with pushInsteadOf and explicit pushurl (pushInsteadOf
247247
test_expect_success 'push with matching heads' '
248248
249249
mk_test heads/master &&
250-
git push testrepo &&
250+
git push testrepo : &&
251251
check_push_result $the_commit heads/master
252252
253253
'
@@ -276,7 +276,7 @@ test_expect_success 'push --force with matching heads' '
276276
mk_test heads/master &&
277277
git push testrepo : &&
278278
git commit --amend -massaged &&
279-
git push --force testrepo &&
279+
git push --force testrepo : &&
280280
! check_push_result $the_commit heads/master &&
281281
git reset --hard $the_commit
282282
@@ -507,7 +507,7 @@ test_expect_success 'push with config remote.*.pushurl' '
507507
git checkout master &&
508508
git config remote.there.url test2repo &&
509509
git config remote.there.pushurl testrepo &&
510-
git push there &&
510+
git push there : &&
511511
check_push_result $the_commit heads/master
512512
'
513513

@@ -521,7 +521,7 @@ test_expect_success 'push with dry-run' '
521521
cd testrepo &&
522522
old_commit=$(git show-ref -s --verify refs/heads/master)
523523
) &&
524-
git push --dry-run testrepo &&
524+
git push --dry-run testrepo : &&
525525
check_push_result $old_commit heads/master
526526
'
527527

@@ -981,7 +981,7 @@ test_expect_success 'push --porcelain --dry-run rejected' '
981981

982982
test_expect_success 'push --prune' '
983983
mk_test heads/master heads/second heads/foo heads/bar &&
984-
git push --prune testrepo &&
984+
git push --prune testrepo : &&
985985
check_push_result $the_commit heads/master &&
986986
check_push_result $the_first_commit heads/second &&
987987
! check_push_result $the_first_commit heads/foo heads/bar

0 commit comments

Comments
 (0)