Commit 22f9a0fc859a2e65f16dcda9ca5826b1f0c3216c

Edward Thomson 2020-06-02T12:12:41

Merge pull request #5531 from joshtriplett/mempack-threads mempack: Use threads when building the pack

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/odb_mempack.c b/src/odb_mempack.c
index 69c423b..6d20b39 100644
--- a/src/odb_mempack.c
+++ b/src/odb_mempack.c
@@ -110,6 +110,8 @@ int git_mempack_dump(git_buf *pack, git_repository *repo, git_odb_backend *_back
 	if (git_packbuilder_new(&packbuilder, repo) < 0)
 		return -1;
 
+	git_packbuilder_set_threads(packbuilder, 0);
+
 	for (i = 0; i < db->commits.size; ++i) {
 		struct memobject *commit = db->commits.ptr[i];