summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-06-03 15:09:28 -0400
committerJames Moger <james.moger@gitblit.com>2014-06-03 15:09:28 -0400
commit60676ffcfd63f24c81b12740627e472118c19a2b (patch)
tree68c2e7b4c607c41900a79e82d0ff949583c4f2e7 /src/main/java
parent2d291de884b4bb3164fda516ebc8510f757495b7 (diff)
downloadgitblit-60676ffcfd63f24c81b12740627e472118c19a2b.tar.gz
gitblit-60676ffcfd63f24c81b12740627e472118c19a2b.zip
Hide gitignore selection if there are no gitignore resources
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/NewRepositoryPage.java2
1 files changed, 1 insertions, 1 deletions
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);