isomorphic-git / isomorphic-git/isomorphic-git

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

Open
#2,017 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8.4k
Forks
491
Avg merge
2h 53m
Merged PRs (30d)
7

Description

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](https://github.com/user-attachments/assets/b7a53415-caf0-4b60-b425-253c53c30a95)
Without it cloning a large repositories failed by timeout...
Is there a any way to make it prettier and from library API?

3. 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](https://github.com/user-attachments/assets/65db4ef7-ab3a-478d-80be-f14d12d61bb6)
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.