We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2ba0f5 commit d7572d8Copy full SHA for d7572d8
1 file changed
helix-loader/src/grammar.rs
@@ -293,6 +293,8 @@ fn fetch_grammar(grammar: GrammarConfiguration) -> Result<FetchStatus> {
293
294
// ensure the revision matches the configured revision
295
if get_revision(&grammar_dir).as_ref() != Some(&revision) {
296
+ git(&grammar_dir, ["reset", "--hard"])?;
297
+ git(&grammar_dir, ["clean", "-fdx"])?;
298
// Fetch the exact revision from the remote.
299
// Supported by server-side git since v2.5.0 (July 2015),
300
// enabled by default on major git hosts.
0 commit comments