summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-12-13 02:13:40 +0100
committerMichael Scherer <misc@zarb.org>2014-12-13 02:13:40 +0100
commite043975c3055383ea02c7216c120d4d644622c5d (patch)
tree310e6ed4858c1b8d22e39995779e938f8e7abe27
parentef5520cd478aa12fe0b9dbb09f6a815ba1314d65 (diff)
Use the new format for data in git_repositories
-rw-r--r--roles/cgit/templates/cgitrepos4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/cgit/templates/cgitrepos b/roles/cgit/templates/cgitrepos
index e24dca1..aaf4148 100644
--- a/roles/cgit/templates/cgitrepos
+++ b/roles/cgit/templates/cgitrepos
@@ -1,8 +1,8 @@
{% if git_repositories is defined %}
{% for repo in git_repositories %}
{% if not repo.private %}
-repo.url={{ repo.name }}
-repo.path={{ repo.path }}
+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 }}
{% endif %}