ignore: clear the error when matching a pattern negation · nodegit/libgit2@2c57114 · GitHub
Skip to content

Commit 2c57114

Browse files
committed
ignore: clear the error when matching a pattern negation
When we discover that we want to keep a negative rule, make sure to clear the error variable, as it we otherwise return whatever was left by the previous loop iteration.
1 parent cd3f3c2 commit 2c57114

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎src/ignore.c‎

Lines changed: 1 addition & 0 deletions

‎tests/status/ignore.c‎

Lines changed: 12 additions & 0 deletions

0 commit comments

Comments
 (0)