Merge "Serve repos via git+https outside of cgit"

This commit is contained in:
Jenkins 2013-08-15 15:51:57 +00:00 committed by Gerrit Code Review
commit 7c1aa9146c
2 changed files with 8 additions and 1 deletions

View File

@ -21,6 +21,13 @@
RewriteEngine On
RewriteRule ^/$ /cgit [R]
SetEnv GIT_PROJECT_ROOT /var/lib/git/
SetEnv GIT_HTTP_EXPORT_ALL
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
ScriptAlias / /usr/libexec/git-core/git-http-backend/
ErrorLog /var/log/httpd/git-error.log
LogLevel warn

View File

@ -6,7 +6,7 @@
cache-size=0
# Specify some default clone prefixes
clone-prefix=git://git.openstack.org https://git.openstack.org/cgit
clone-prefix=git://git.openstack.org https://git.openstack.org
# Specify the css url
css=/cgit-data/cgit.css