feat: apply mirror git config for serving performance#130
Merged
alecthomas merged 1 commit intomainfrom Feb 20, 2026
Merged
Conversation
Add configureMirror() helper that applies git config settings to mirror clones for optimised upload-pack serving: - Protocol v2, allowFilter, allowReachableSHA1InWant - Bitmap settings for faster pack generation - Commit graph (without Bloom filters) - Multi-pack-index to avoid full repack on fetch - Unpack limits to keep fetched objects as packs - Disable auto GC (maintenance will be explicit) - Pack performance tuning (threads, deltaCacheSize, windowMemory) Called after git clone --mirror succeeds and for repos discovered by DiscoverExisting() on startup, so pre-existing repos get updated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #124
Apply git config settings from the design doc (#23) to mirror clones for optimised
upload-packserving.Changes
mirrorConfigSettings()returning all 17 config key-value pairs (protocol, bitmaps, commit graph, multi-pack-index, unpack limits, GC, pack performance)configureMirror()helper that applies settings viagit configexecuteClone()callsconfigureMirror()after clone, replacing the standaloneuploadpack.allowFiltercallDiscoverExisting()callsconfigureMirror()for each discovered repo on startup so pre-existing repos get updated