Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repository size too big #157

Open
aryx opened this issue Sep 18, 2022 · 1 comment
Open

repository size too big #157

aryx opened this issue Sep 18, 2022 · 1 comment

Comments

@aryx
Copy link
Contributor

aryx commented Sep 18, 2022

We're using tree-sitter repositories as submodules in semgrep (see https://github.com/returntocorp/ocaml-tree-sitter-semgrep/blob/main/.gitmodules ) and most repositories are fine except tree-sitter-rust which takes a very long time
to clone and update. I usually get connection timeout from github while doing a git submodule update just
because of tree-sitter-rust.

Would it be possible to reduce its size or make the submodule update operation faster?

@jwnrt
Copy link
Contributor

jwnrt commented May 4, 2024

If you only need the contents of the repository and not the history, adding shallow = true to a module in .gitmodules can help a lot.

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

No branches or pull requests

2 participants