You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this is expected behaviour, feel free to close.
In a local test, I validated that the correct behaviour is present when using TreeWalk.
Only weird that IgnoreNode would always result in Check_Parent if clearly ignored by the current node.
I do not really need a fix as I made a workaround which just uses the internally used getRules response and call correct true/false based on the current input.
Version
latest
Operating System
Linux/Unix, MacOS
Bug description
a .gitignore file containing a single ignore rule for a directory fails to match correctly.
should be ignoring
/directory/nested/again
directoryActual behavior
the result given back is CHECK_PARENT
Expected behavior
the result given back is IGNORED
Relevant log output
No response
Other information
I have a test showcasing this behaviour in my fork (will link commit). Here more insights/debugging can be found.
Caused by the fact that
IgnoreNode
is always passingtrue
aspathMatch
to therule.isMatch
The text was updated successfully, but these errors were encountered: