As discovered in https://github.com/github-linguist/linguist/pull/6985#issuecomment-2284478929, for some reason the .git/modules/vendor/grammars/:grammar-name isn't always removed when replacing a grammar when running script/add-grammar --replace :grammar-name. This PR adds a manual removal of the submodule in .git/modules/vendor/grammars/:grammar-name to ensure that the submodule is removed when replacing grammars.
Checklist:
[x] I am adding new or changing current functionality
[ ] I have added or updated the tests for the new or changed functionality. N/A
Description
As discovered in https://github.com/github-linguist/linguist/pull/6985#issuecomment-2284478929, for some reason the
.git/modules/vendor/grammars/:grammar-name
isn't always removed when replacing a grammar when runningscript/add-grammar --replace :grammar-name
. This PR adds a manual removal of the submodule in.git/modules/vendor/grammars/:grammar-name
to ensure that the submodule is removed when replacing grammars.Checklist:
I have added or updated the tests for the new or changed functionality.N/A