summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 %}