]> source.dussan.org Git - gitblit.git/commitdiff
Repository must have commits to be searchable
authorJames Moger <james.moger@gitblit.com>
Wed, 14 Mar 2012 20:34:22 +0000 (16:34 -0400)
committerJames Moger <james.moger@gitblit.com>
Wed, 14 Mar 2012 20:34:22 +0000 (16:34 -0400)
src/com/gitblit/wicket/pages/LucenePage.java

index 39d33b34f1681782406ff2de14062b7d0f8da4bb..d9b4d5ba922062c397b3b9ae4bc06323fc171e68 100644 (file)
@@ -118,7 +118,9 @@ public class LucenePage extends RootPage {
                UserModel user = GitBlitWebSession.get().getUser();\r
                List<String> availableRepositories = new ArrayList<String>();\r
                for (RepositoryModel model : GitBlit.self().getRepositoryModels(user)) {\r
-                       availableRepositories.add(model.name);\r
+                       if (model.hasCommits) {\r
+                               availableRepositories.add(model.name);\r
+                       }\r
                }\r
                ListMultipleChoice<String> selections = new ListMultipleChoice<String>("repositories", \r
                                repositoriesModel, availableRepositories, new StringChoiceRenderer());\r