X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=t%2Ft5516-fetch-push.sh;fp=t%2Ft5516-fetch-push.sh;h=f11742ed5999eeb710901226b81d628404021cd6;hp=15262b41929d81fe51ea03d1aba298860ca346b3;hb=140045821aa78da3a80a7d7c8f707b955e1ab40d;hpb=cadae717d557840d3566b7c0fc2003046e08c88f diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh index 15262b4192..f11742ed59 100755 --- a/t/t5516-fetch-push.sh +++ b/t/t5516-fetch-push.sh @@ -820,6 +820,11 @@ test_expect_success 'push --delete refuses src:dest refspecs' ' test_must_fail git push testrepo --delete main:foo ' +test_expect_success 'push --delete refuses empty string' ' + mk_test testrepo heads/master && + test_must_fail git push testrepo --delete "" +' + test_expect_success 'warn on push to HEAD of non-bare repository' ' mk_test testrepo heads/main && (