Commit 6a8127d71d10d5b2d7adfda3da1182568e19afde

Jacques Germishuys 2016-12-25T22:13:48

mempack: set the odb backend version

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/odb_mempack.c b/src/odb_mempack.c
index 68db3bc..84ed9c1 100644
--- a/src/odb_mempack.c
+++ b/src/odb_mempack.c
@@ -177,6 +177,7 @@ int git_mempack_new(git_odb_backend **out)
 
 	db->objects = git_oidmap_alloc();
 
+	db->parent.version = GIT_ODB_BACKEND_VERSION;
 	db->parent.read = &impl__read;
 	db->parent.write = &impl__write;
 	db->parent.read_header = &impl__read_header;