t5516: do not assume the "matching" push is the default
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Jan 4, 2013 at 16:08 UTC
0a42ac033115c752fd984373e4a70f10aee1a65f
1 file changed
+5
-5
t/t5516-fetch-push.sh
+5
-5
@@ -247,7 +247,7 @@ test_expect_success 'push with pushInsteadOf and explicit pushurl (pushInsteadOf
247
test_expect_success 'push with matching heads' '
248
249
mk_test heads/master &&
250
- git push testrepo &&
250
+ git push testrepo : &&
251
check_push_result $the_commit heads/master
252
253
'
@@ -276,7 +276,7 @@ test_expect_success 'push --force with matching heads' '
276
mk_test heads/master &&
277
git push testrepo : &&
278
git commit --amend -massaged &&
279
- git push --force testrepo &&
279
+ git push --force testrepo : &&
280
! check_push_result $the_commit heads/master &&
281
git reset --hard $the_commit
282
@@ -507,7 +507,7 @@ test_expect_success 'push with config remote.*.pushurl' '
507
git checkout master &&
508
git config remote.there.url test2repo &&
509
git config remote.there.pushurl testrepo &&
510
- git push there &&
510
+ git push there : &&
511
check_push_result $the_commit heads/master
512
'
513
@@ -521,7 +521,7 @@ test_expect_success 'push with dry-run' '
521
cd testrepo &&
522
old_commit=$(git show-ref -s --verify refs/heads/master)
523
) &&
524
- git push --dry-run testrepo &&
524
+ git push --dry-run testrepo : &&
525
check_push_result $old_commit heads/master
526
'
527
@@ -981,7 +981,7 @@ test_expect_success 'push --porcelain --dry-run rejected' '
981
982
test_expect_success 'push --prune' '
983
mk_test heads/master heads/second heads/foo heads/bar &&
984
- git push --prune testrepo &&
984
+ git push --prune testrepo : &&
985
check_push_result $the_commit heads/master &&
986
check_push_result $the_first_commit heads/second &&
987
! check_push_result $the_first_commit heads/foo heads/bar