commit-graph tests: test a graph that's too small
[gitweb.git] / t / t5318-commit-graph.sh
index 725b7ce51f06d7154ac45e831a7fa099859edb7a..733be2ed30c2ea1fdd3d920dec43a30227a98634 100755 (executable)
@@ -399,6 +399,12 @@ corrupt_graph_and_verify() {
 
 }
 
+test_expect_success 'detect too small' '
+       corrupt_graph_setup &&
+       echo "a small graph" >$objdir/info/commit-graph &&
+       corrupt_graph_verify "too small"
+'
+
 test_expect_success 'detect bad signature' '
        corrupt_graph_and_verify 0 "\0" \
                "graph signature"