summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-12-13 02:51:53 +0100
committerMichael Scherer <misc@zarb.org>2014-12-13 02:51:53 +0100
commit095a09c69aade8e2f18c9d22fd3adfd6c9c11bdb (patch)
tree1c9134838b3e3f5c31c7cbaf4ce04b71e50bcc48
parent45fa4e1b8681716247fd2c6fca1e254b706e5173 (diff)
Use a more complicated condition
If repo.private do not exist, the whole template fail.
-rw-r--r--roles/cgit/templates/cgitrepos5
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/cgit/templates/cgitrepos b/roles/cgit/templates/cgitrepos
index aaf4148..54b86f2 100644
--- a/roles/cgit/templates/cgitrepos
+++ b/roles/cgit/templates/cgitrepos
@@ -1,7 +1,8 @@
{% if git_repositories is defined %}
{% for repo in git_repositories %}
-{% if not repo.private %}
-repo.url={% if repo.url is defined %}{{ repo.url }}{% else %}{{ repo.name }}{% endif %}
+{% if not repo.private is defined or not repo.private %}
+repo.url={% if repo.url is defined %}{{ repo.url }}{% else %}{{ repo.name }}
+{% endif %}
repo.path={{ git_repositories_dir}}/{{ repo.name }}
repo.desc={{ repo.desc }}
repo.owner={{ repo.owner }}