t/t9602-cvsimport-branches-tags.sh: Add a PERL prerequisite
[gitweb.git] / t / t5400-send-pack.sh
index 8463332cb8038307e2dfffa9e43cf92d331eef07..c718253673ec8b3baf635c4dc0b05fe127c6f4cd 100755 (executable)
@@ -191,16 +191,11 @@ test_expect_success 'pushing wildcard refspecs respects forcing' '
        test "$parent_head" = "$child_head"
 '
 
-test_expect_success 'warn pushing to delete current branch' '
+test_expect_success 'deny pushing to delete current branch' '
        rewound_push_setup &&
        (
            cd child &&
-           git send-pack ../parent :refs/heads/master 2>errs
-       ) &&
-       grep "warning: to refuse deleting" child/errs &&
-       (
-               cd parent &&
-               test_must_fail git rev-parse --verify master
+           test_must_fail git send-pack ../parent :refs/heads/master 2>errs
        )
 '