summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md3
-rw-r--r--src/transports/local.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0970bfdc8..77477a305 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,9 @@ v0.22 + 1
removed. Use `git_repository_set_ident()` and
`git_repository_ident()` to override the signature to be used.
+* The local transport now auto-scales the number of threads to use
+ when creating the packfile instead of sticking to one.
+
### API additions
* Parsing and retrieving a configuration value as a path is exposed
diff --git a/src/transports/local.c b/src/transports/local.c
index bedd2390b..588b7ce17 100644
--- a/src/transports/local.c
+++ b/src/transports/local.c
@@ -609,6 +609,9 @@ static int local_download_pack(
data.progress_payload = progress_payload;
data.writepack = writepack;
+ /* autodetect */
+ git_packbuilder_set_threads(pack, 0);
+
if ((error = git_packbuilder_foreach(pack, foreach_cb, &data)) != 0)
goto cleanup;
}