ignore: fix directory limits when searching for star-star · nodegit/libgit2@1c3018e · GitHub
Skip to content

Commit 1c3018e

Browse files
committed
ignore: fix directory limits when searching for star-star
In order to match the star-star, we disable the flag that's looking for a single path element, but that leads to searching for the pattern in the middle of elements in the input string. Mark when we're handing a star-star so we jump over the elements in our attempt to match the part of the pattern that comes after the star-star. While here, tighten up the check so we don't allow invalid rules through.
1 parent 0f36271 commit 1c3018e

2 files changed

Lines changed: 36 additions & 6 deletions

File tree

‎src/fnmatch.c‎

Lines changed: 24 additions & 6 deletions

‎tests/attr/ignore.c‎

Lines changed: 12 additions & 0 deletions

0 commit comments

Comments
 (0)