Support a --quiet option in the test-suite.
[gitweb.git] / t / t5516-fetch-push.sh
index ca46aafe72fbf74d0569e68a0e7920655d98f9f5..4fbd5b1f473578ac5a1ac61a87883015c04fdc63 100755 (executable)
@@ -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