summaryrefslogtreecommitdiff
path: root/tests/t0602-write.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t0602-write.c')
-rw-r--r--tests/t0602-write.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/t0602-write.c b/tests/t0602-write.c
index d232193b7..415183f94 100644
--- a/tests/t0602-write.c
+++ b/tests/t0602-write.c
@@ -35,8 +35,7 @@ BEGIN_TEST(index_load_test)
git_index *index;
git_filelock out_file;
- index = git_index_alloc(TEST_INDEX_PATH, NULL);
- must_be_true(index != NULL);
+ must_pass(git_index_open(&index, TEST_INDEX_PATH, NULL));
must_pass(git_index_read(index));
must_be_true(index->on_disk);