From 60676ffcfd63f24c81b12740627e472118c19a2b Mon Sep 17 00:00:00 2001 From: James Moger Date: Tue, 3 Jun 2014 15:09:28 -0400 Subject: [PATCH] Hide gitignore selection if there are no gitignore resources --- src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java index bc2c68cc..0134677e 100644 --- a/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java +++ b/src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java @@ -207,7 +207,7 @@ public class NewRepositoryPage extends RootSubPage { getString("gb.initWithGitignoreDescription"), addGitignoreModel, gitignoreModel, - gitignores)); + gitignores).setVisible(gitignores.size() > 0)); // TODO consider gitflow at creation (ticket-55) addGitflowModel = Model.of(false); -- 2.39.5