diff --git a/web.py b/web.py index 823b44e..b143408 100644 --- a/web.py +++ b/web.py @@ -31,11 +31,11 @@ from pygments.formatters import HtmlFormatter # The root folder where Gitolite stores the repositories. This is used to find the # actual repositories. -GITOLITE_REPOSITORIES_ROOT = '/home/git/repositories' +GITOLITE_REPOSITORIES_ROOT = os.environ.get(GITOLITE_REPOSITORIES_ROOT, '/home/git/repositories') # These are only used when anonymous cloning over HTTPS -GITOLITE_SHELL = '/home/git/bin/gitolite-shell' -GITOLITE_HTTP_HOME = '/home/git' +GITOLITE_SHELL = os.environ.get(GITOLITE_SHELL, '/home/git/bin/gitolite-shell') +GITOLITE_HTTP_HOME = os.environ.get(GITOLITE_HTTP_HOME, '/home/git') # The domain of this instance. This is only really used when displaying list addresses, # or when the domain needs to be displayed on some pages.