Large repository usage problems (too many pack files, timeout issues)

Author: GTVolkCreated Jan 13, 2025Updated Apr 17, 2026

Node v20.11.1

I use your amazing library to make a universal code editor via Electron app. But, i have large repositories (several gigabytes) with several branches to work with, and there are several problems that blocks me from using this library with it:

  1. There is no way to specify a timeout in the node http module. I had to take the source code and add a line with a timeout override. image Without it cloning a large repositories failed by timeout... Is there a any way to make it prettier and from library API?

  2. When i clone repository as singleBranch: true, i use only fetch, fast-forward and push. But my local copy accumulates a large number of large pack files, although with the same work through the console git client there are 1-2 files of several kilobytes. image So, when i'am adding small json file by several kilobytes in repository then repository grows in size by 300-500 Mb each time... Is this correct behavior?

Please, help

Source: isomorphic-git/isomorphic-git