From f6132662b8bcf329b8a1c010a9f52bb5b260d59d Mon Sep 17 00:00:00 2001 From: Josh Friend Date: Tue, 21 Apr 2026 13:32:07 -0400 Subject: [PATCH] feat: set lfs.concurrenttransfers to 100 for mirror clones --- internal/gitclone/manager.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/gitclone/manager.go b/internal/gitclone/manager.go index 2228eaa..0f9ee48 100644 --- a/internal/gitclone/manager.go +++ b/internal/gitclone/manager.go @@ -431,6 +431,10 @@ func mirrorConfigSettings(packThreads int) [][2]string { {"pack.threads", strconv.Itoa(packThreads)}, {"pack.deltaCacheSize", "512m"}, {"pack.windowMemory", "1g"}, + // LFS fetches are I/O-bound; the git-lfs default of 8 is too low. + // See git-lfs/git-lfs#6241 for an upstream change (unreleased) that + // raises the default to 3×NCPU. + {"lfs.concurrenttransfers", "100"}, } }