diff --git a/modules/cgit/templates/git.vhost.erb b/modules/cgit/templates/git.vhost.erb index a171738fc6..6a1a46d9ba 100644 --- a/modules/cgit/templates/git.vhost.erb +++ b/modules/cgit/templates/git.vhost.erb @@ -10,6 +10,7 @@ SetEnv GIT_PROJECT_ROOT /var/lib/git/ SetEnv GIT_HTTP_EXPORT_ALL + SetEnv GIT_NOTES_DISPLAY_REF refs/notes/* AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /var/lib/git/$1 AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /var/lib/git/$1 @@ -34,6 +35,7 @@ SetEnv GIT_PROJECT_ROOT /var/lib/git/ SetEnv GIT_HTTP_EXPORT_ALL + SetEnv GIT_NOTES_DISPLAY_REF refs/notes/* AliasMatch ^/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /var/lib/git/$1 AliasMatch ^/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /var/lib/git/$1