Skip to content

Commit

Permalink
Rollup merge of rust-lang#89816 - Canop:master, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Fix invalid rules in .gitignore

`**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`.

Reference on git ignoring rules format: https://git-scm.com/docs/gitignore
  • Loading branch information
JohnTitor authored Oct 13, 2021
2 parents 3188128 + e5cfe84 commit 53ac990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53ac990

Please sign in to comment.