From 68ce2ce77157b2fda9c4f4a0893ece499e747320 Mon Sep 17 00:00:00 2001 From: James Moger Date: Wed, 14 Mar 2012 16:34:22 -0400 Subject: [PATCH] Repository must have commits to be searchable --- src/com/gitblit/wicket/pages/LucenePage.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/gitblit/wicket/pages/LucenePage.java b/src/com/gitblit/wicket/pages/LucenePage.java index 39d33b34..d9b4d5ba 100644 --- a/src/com/gitblit/wicket/pages/LucenePage.java +++ b/src/com/gitblit/wicket/pages/LucenePage.java @@ -118,7 +118,9 @@ public class LucenePage extends RootPage { UserModel user = GitBlitWebSession.get().getUser(); List availableRepositories = new ArrayList(); for (RepositoryModel model : GitBlit.self().getRepositoryModels(user)) { - availableRepositories.add(model.name); + if (model.hasCommits) { + availableRepositories.add(model.name); + } } ListMultipleChoice selections = new ListMultipleChoice("repositories", repositoriesModel, availableRepositories, new StringChoiceRenderer()); -- 2.39.5