From e043975c3055383ea02c7216c120d4d644622c5d Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 13 Dec 2014 02:13:40 +0100 Subject: Use the new format for data in git_repositories --- roles/cgit/templates/cgitrepos | 4 ++-- 1 file 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 %} -- cgit