summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorRobin Stocker <robin@nibor.org>2013-12-03 22:25:40 +0100
committerRobin Stocker <robin@nibor.org>2013-12-03 22:30:14 +0100
commitf4dae204a6a2a1a85e8a90a5e89187f3415099e3 (patch)
tree9f239f3ceb3135fe4aca3f100d3c43b1cefc6aba /org.eclipse.jgit
parent7dc8a4f089c1ca4762cf6fbf2e77898607a5820a (diff)
downloadjgit-f4dae204a6a2a1a85e8a90a5e89187f3415099e3.tar.gz
jgit-f4dae204a6a2a1a85e8a90a5e89187f3415099e3.zip
Fix IgnoreRule#isMatch returning wrong result due to missing reset
The matcher has to be reset before using it, as was already done in the other cases. Bug: 423039 Change-Id: I87abaa7ad7f0aac8651db6e88d41427cacb4d776 Also-by: Ondrej Vrabec <ovrabec@netbeans.org> Signed-off-by: Robin Stocker <robin@nibor.org>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java b/org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java
index e0c780feec..980f2094bd 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/ignore/IgnoreRule.java
@@ -198,6 +198,7 @@ public class IgnoreRule {
}
} else {
+ matcher.reset();
matcher.append(target);
if (matcher.isMatch())
return true;