From cdbbda53e245621065bf142e48737faf88a5fee7 Mon Sep 17 00:00:00 2001 From: James Moger Date: Sat, 17 Mar 2012 11:00:17 -0400 Subject: [PATCH] Incremental commit indexing was missing branch field --- src/com/gitblit/LuceneExecutor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/gitblit/LuceneExecutor.java b/src/com/gitblit/LuceneExecutor.java index e4ee0b67..489d308d 100644 --- a/src/com/gitblit/LuceneExecutor.java +++ b/src/com/gitblit/LuceneExecutor.java @@ -680,6 +680,7 @@ public class LuceneExecutor implements Runnable { writer.commit(); Document doc = createDocument(commit, null); + doc.add(new Field(FIELD_BRANCH, branch, Store.YES, Index.ANALYZED)); result.commitCount++; result.success = index(repositoryName, doc); } catch (Exception e) { -- 2.39.5