clone: run check_everything_connected
[gitweb.git] / t / t2011-checkout-invalid-head.sh
index 764bb0a6bc3de1f3313fb16c384bbd37c82ae5da..300f8bf25c34cf4ea4e011d1daa525285ca94c5a 100755 (executable)
@@ -10,8 +10,12 @@ test_expect_success 'setup' '
        git commit -m initial
 '
 
+test_expect_success 'checkout should not start branch from a tree' '
+       test_must_fail git checkout -b newbranch master^{tree}
+'
+
 test_expect_success 'checkout master from invalid HEAD' '
-       echo 0000000000000000000000000000000000000000 >.git/HEAD &&
+       echo $_z40 >.git/HEAD &&
        git checkout master --
 '