summary refs log tree commit diff stats
path: root/ganarchy/templating
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2020-11-07 13:43:58 -0300
committerSoniEx2 <endermoneymod@gmail.com>2020-11-07 13:43:58 -0300
commitdb85f92e9b77c691f25f3109e5040e03e7b1319c (patch)
treead75331d81d11533e89b77dd8153f7eef1d20a27 /ganarchy/templating
parentdcdcc839352613d67937eda6d5a4f13097b1793e (diff)
Add non-federating repos
Diffstat (limited to 'ganarchy/templating')
-rw-r--r--ganarchy/templating/templates.py2
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 -%}
 """,