X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft5516-fetch-push.sh;h=4fbd5b1f473578ac5a1ac61a87883015c04fdc63;hb=e2b7eaf0ca3897940961d23392d4ff718867ea9f;hp=ca46aafe72fbf74d0569e68a0e7920655d98f9f5;hpb=c576304d512df18fa30b91bb3ac15478d5d4dfb1;p=git.git diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh index ca46aafe7..4fbd5b1f4 100755 --- a/t/t5516-fetch-push.sh +++ b/t/t5516-fetch-push.sh @@ -244,4 +244,14 @@ test_expect_success 'push with colon-less refspec (4)' ' ' +test_expect_success 'push with dry-run' ' + + mk_test heads/master && + cd testrepo && + old_commit=$(git show-ref -s --verify refs/heads/master) && + cd .. && + git push --dry-run testrepo && + check_push_result $old_commit heads/master +' + test_done