🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

Commit 921d3584d704caadbe91f06eea7d1a83bb4f9ad0
Parent: 33196497451a198dec6dbfbaa2cdd60677e749ec
Author: mcol <mcol@posteo.net>
Date: 2021-11-29 00:16:26 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2021-11-29 00:16:26 +0000

Fix branch tests

test/templates/repo/index.html Modified

@@ -9,9 +9,8 @@
 description: {{ description }}
 commits: (skipped)
 tree: (skipped)
-tags: (skipped)
-branches: {{ branches }}
-    branches[0].name: {{ branches[0].name }}
+tags: {{ length(filter(tags, (t) -> t.name == "0.2.0")) }}
+branches: {{ length(filter(branches, (b) -> b.name == "master")) }}
 readme.path: {{ readme.path }}
 license.path: {{ license.path }}
 {% endblock %}

test/templates/repo/file.html Modified

@@ -21,9 +21,8 @@
 description: {{ description }}
 commits: (skipped)
 tree: (skipped)
-tags: (skipped)
-branches: {{ branches }}
-    branches[0].name: {{ branches[0].name }}
+tags: {{ length(filter(tags, (t) -> t.name == "0.2.0")) }}
+branches: {{ length(filter(branches, (b) -> b.name == "master")) }}
 readme.path: {{ readme.path }}
 license.path: {{ license.path }}
 {% endblock %}

test/expected/gitserve/index.html Modified

@@ -6,8 +6,7 @@
 description: 🐙 Templated web page generator for your git repositories
 commits: (skipped)
 tree: (skipped)
-tags: (skipped)
-branches: master
-    branches[0].name: master
+tags: 1
+branches: 1
 readme.path: README.rst
 license.path: LICENSE

test/expected/gitserve/file/test.templates.style.css.html Modified

@@ -16,8 +16,7 @@
 description: 🐙 Templated web page generator for your git repositories
 commits: (skipped)
 tree: (skipped)
-tags: (skipped)
-branches: master
-    branches[0].name: master
+tags: 1
+branches: 1
 readme.path: README.rst
 license.path: LICENSE

test/expected/gitserve/file/test.expected.gitserve.file.html Modified

@@ -16,8 +16,7 @@
 description: 🐙 Templated web page generator for your git repositories
 commits: (skipped)
 tree: (skipped)
-tags: (skipped)
-branches: master
-    branches[0].name: master
+tags: 1
+branches: 1
 readme.path: README.rst
 license.path: LICENSE