diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2020-11-07 13:43:58 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2020-11-07 13:43:58 -0300 |
commit | db85f92e9b77c691f25f3109e5040e03e7b1319c (patch) | |
tree | ad75331d81d11533e89b77dd8153f7eef1d20a27 /ganarchy/templating | |
parent | dcdcc839352613d67937eda6d5a4f13097b1793e (diff) |
Add non-federating repos
Diffstat (limited to 'ganarchy/templating')
-rw-r--r-- | ganarchy/templating/templates.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ganarchy/templating/templates.py b/ganarchy/templating/templates.py index 1435940..1b069b2 100644 --- a/ganarchy/templating/templates.py +++ b/ganarchy/templating/templates.py @@ -70,7 +70,9 @@ def get_template_loader(): {%- for project in database.list_projects() %} [projects.{{project}}] {%- for repo_url, branch, _head_commit in database.list_repobranches(project) %} +{%- if database.should_repo_federate(project, repo_url, branch) %} "{{repo_url|tomle}}".{% if not branch %}HEAD{% else %}"{{branch|tomle}}"{% endif %} = { active=true } +{%- endif %} {%- endfor %} {% endfor -%} """, |