commit-graph write: don't die if the existing graph is corrupt
[gitweb.git] / t / t1008-read-tree-overlay.sh
index f9e00285db662504b200fb25f0ed06c796346c52..cf96016844822cfec9998f107baebf15cb4c70db 100755 (executable)
@@ -3,6 +3,7 @@
 test_description='test multi-tree read-tree without merging'
 
 . ./test-lib.sh
+. "$TEST_DIRECTORY"/lib-read-tree.sh
 
 test_expect_success setup '
        echo one >a &&
@@ -21,8 +22,8 @@ test_expect_success setup '
 '
 
 test_expect_success 'multi-read' '
-       git read-tree initial master side &&
-       (echo a; echo b/c) >expect &&
+       read_tree_must_succeed initial master side &&
+       test_write_lines a b/c >expect &&
        git ls-files >actual &&
        test_cmp expect actual
 '