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

Manually remove module in .git when replacing grammars #6990

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

lildude
Copy link
Member

@lildude lildude commented Aug 12, 2024

Description

As discovered in #6985 (comment), 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:

  • I am adding new or changing current functionality
    • I have added or updated the tests for the new or changed functionality. N/A

@lildude lildude requested a review from a team as a code owner August 12, 2024 16:51
@lildude lildude requested a review from Alhadis August 12, 2024 17:17
Copy link
Collaborator

@Alhadis Alhadis left a comment

Choose a reason for hiding this comment

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

I've had to manually remove such directories a few times, myself. (Usually after a botched grammar replacement…)

@lildude lildude merged commit d190ad8 into master Aug 14, 2024
8 checks passed
@lildude lildude deleted the lildude/fix-grammar-replace branch August 14, 2024 07:35
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.

3 participants