Manually remove module in `.git` when replacing grammars by lildude · Pull Request #6990 · github-linguist/linguist · GitHub
Skip to content

Manually remove module in .git when replacing grammars#6990

Merged
lildude merged 1 commit into
masterfrom
lildude/fix-grammar-replace
Aug 14, 2024
Merged

Manually remove module in .git when replacing grammars#6990
lildude merged 1 commit into
masterfrom
lildude/fix-grammar-replace

Conversation

@lildude

@lildude lildude commented Aug 12, 2024

Copy link
Copy Markdown
Member

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

@Alhadis Alhadis left a comment

Copy link
Copy Markdown
Collaborator

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
@lildude lildude deleted the lildude/fix-grammar-replace branch August 14, 2024 07:35
@github-linguist github-linguist locked as resolved and limited conversation to collaborators Nov 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants