aboutsummaryrefslogtreecommitdiffstats
path: root/roles/git/templates/etc_cgitrc.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/git/templates/etc_cgitrc.j2')
-rw-r--r--roles/git/templates/etc_cgitrc.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/git/templates/etc_cgitrc.j2 b/roles/git/templates/etc_cgitrc.j2
index a16642c..82af626 100644
--- a/roles/git/templates/etc_cgitrc.j2
+++ b/roles/git/templates/etc_cgitrc.j2
@@ -1,6 +1,8 @@
# Enable caching of up to 1000 output entries
cache-size=1000
+# Fixes relative vs. absolute paths
+virtual-root=/
# Specify some default clone urls using macro expansion
clone-url=git@{{ cgit_hostname }}:$CGIT_REPO_URL https://{{ cgit_hostname }}/$CGIT_REPO_URL git://{{ cgit_hostname }}/$CGIT_REPO_URL