emacs-tree-sitter / tree-sitter-langs

Language bundle for Emacs's tree-sitter package
https://emacs-tree-sitter.github.io/languages/
MIT License
261 stars 130 forks source link

Using `update = none` for submodules breaks git commands #17

Open rosekunkel opened 3 years ago

rosekunkel commented 3 years ago

Some git commands don't work correctly if submodules aren't initialized. For example:

$ git clone --recurse-submodules https://github.com/ubolonton/tree-sitter-langs
$ cd tree-sitter-langs
$ git reset --hard
fatal: not a git repository: ../../.git/modules/repos/agda
fatal: could not reset submodule index

This causes problems for tools that operate on git repositories. For example, this package breaks the update tool for Doom Emacs: https://github.com/hlissner/doom-emacs/issues/5064

ubolonton commented 3 years ago

This should likely be fixed in straight.

rosekunkel commented 3 years ago

The problem isn't related to straight, the Doom Emacs tool uses git commands directly.

elken commented 3 years ago

The problem isn't related to straight, the Doom Emacs tool uses git commands directly.

For itself, not for package upgrades. So the problem is related to straight.