tree-sitter-rust icon indicating copy to clipboard operation
tree-sitter-rust copied to clipboard

repository size too big

Open aryx opened this issue 3 years ago • 1 comments

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?

aryx avatar Sep 18 '22 14:09 aryx

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.

jwnrt avatar May 04 '24 21:05 jwnrt