about summary refs log tree commit diff
path: root/third_party/git/t/helper/test-read-midx.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/helper/test-read-midx.c')
-rw-r--r--third_party/git/t/helper/test-read-midx.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/third_party/git/t/helper/test-read-midx.c b/third_party/git/t/helper/test-read-midx.c
index 831b586d0222..2430880f78f8 100644
--- a/third_party/git/t/helper/test-read-midx.c
+++ b/third_party/git/t/helper/test-read-midx.c
@@ -7,14 +7,18 @@
 static int read_midx_file(const char *object_dir)
 {
 	uint32_t i;
-	struct multi_pack_index *m = load_multi_pack_index(object_dir, 1);
+	struct multi_pack_index *m;
+
+	setup_git_directory();
+	m = load_multi_pack_index(object_dir, 1);
 
 	if (!m)
 		return 1;
 
-	printf("header: %08x %d %d %d\n",
+	printf("header: %08x %d %d %d %d\n",
 	       m->signature,
 	       m->version,
+	       m->hash_len,
 	       m->num_chunks,
 	       m->num_packs);