Skip to content

Use system Git instead of go-git for repo cloning#80

Merged
xm1k3 merged 1 commit intoxm1k3:mainfrom
sttlr:use-system-git-for-cloning
Jun 12, 2025
Merged

Use system Git instead of go-git for repo cloning#80
xm1k3 merged 1 commit intoxm1k3:mainfrom
sttlr:use-system-git-for-cloning

Conversation

@sttlr
Copy link
Copy Markdown
Contributor

@sttlr sttlr commented May 20, 2025

go-git is so slow for repos with tens of thousands of files. It takes more than 1 hour to clone all repos using go-git.

System git does this in 5 minutes.

So removing go-git and instead running git clone --depth 1 --single-branch --no-tags --no-recurse-submodules $gitPath $destDir for each repo.

git must be installed on the system and be in $PATH

Copy link
Copy Markdown
Owner

@xm1k3 xm1k3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xm1k3 xm1k3 merged commit 54ee814 into xm1k3:main Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants