]> git.lizzy.rs Git - rust.git/commitdiff
Fix invalid rules in .gitignore
authorCanop <cano.petrole@gmail.com>
Tue, 12 Oct 2021 13:09:28 +0000 (15:09 +0200)
committerCanop <cano.petrole@gmail.com>
Tue, 12 Oct 2021 13:09:28 +0000 (15:09 +0200)
`**node_modules` in a .gitignore is the same than
`*node_modules` or `*****node_modules`.

It matches every file whose name ends with `node_modules`,
including `not_node_modules`.

The intent here was obviously to have `**/node_modules`
which is the same than just `node_modules`.

.gitignore

index b7e8e8fa15752d6761bfe49fcd9ad287c6830b78..87437a16fb392c2b09e3fca8beea5a3997f27243 100644 (file)
@@ -69,8 +69,8 @@ __pycache__/
 *$py.class
 
 ## Node
-**node_modules
-**package-lock.json
+node_modules
+package-lock.json
 
 ## Rustdoc GUI tests
 src/test/rustdoc-gui/src/**.lock