summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPlamen Totev <plamentotev@users.noreply.github.com>2015-07-12 18:08:14 +0300
committerPlamen Totev <plamentotev@users.noreply.github.com>2015-07-12 18:08:14 +0300
commitd0bb38c765274b1c889a429616d4da2b478cdbd2 (patch)
treef79cbf28a82b06550ba549e605d650b8ad37e0f6 /src
parent4dfbfdd4681cfad922725f8989450c24eaed64f5 (diff)
downloadgitblit-d0bb38c765274b1c889a429616d4da2b478cdbd2.tar.gz
gitblit-d0bb38c765274b1c889a429616d4da2b478cdbd2.zip
Fix tags not properly indexed in Lucene
All tags that reference to particular object are stored in a list within a map. There is a if statement that inits empty list when there are not references to the current object yet, but the boolean expression checks for the wrong value.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/gitblit/service/LuceneService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/service/LuceneService.java b/src/main/java/com/gitblit/service/LuceneService.java
index 285ea8d7..097a39b2 100644
--- a/src/main/java/com/gitblit/service/LuceneService.java
+++ b/src/main/java/com/gitblit/service/LuceneService.java
@@ -437,7 +437,7 @@ public class LuceneService implements Runnable {
// skip non-annotated tags
continue;
}
- if (!tags.containsKey(tag.getObjectId().getName())) {
+ if (!tags.containsKey(tag.getReferencedObjectId().getName())) {
tags.put(tag.getReferencedObjectId().getName(), new ArrayList<String>());
}
tags.get(tag.getReferencedObjectId().getName()).add(tag.displayName);