diff options
author | Tommi Virtanen <tv@eagain.net> | 2007-11-29 00:40:34 +0200 |
---|---|---|
committer | Tommi Virtanen <tv@eagain.net> | 2007-11-29 00:40:34 +0200 |
commit | 2078a0c828a064d0e12eed9110c3f71237a3d022 (patch) | |
tree | 73f85e3d7b887241e78508f253cfbac9e317ec01 /gitosis/util.py | |
parent | Add instructions for using gitweb. (diff) | |
download | gitosis-dakkar-2078a0c828a064d0e12eed9110c3f71237a3d022.tar.gz gitosis-dakkar-2078a0c828a064d0e12eed9110c3f71237a3d022.tar.bz2 gitosis-dakkar-2078a0c828a064d0e12eed9110c3f71237a3d022.zip |
Write gitweb projects.list to ~/gitosis, not inside the gitosis-admin repo.
This allows running gitweb as a separate user without needing to allow it
read access to gitosis-admin.git. Running as separate user will still most
likely require a ``chgrp www-data`` of the relevant repositories, but
nothing not already decided public needs to be exposed.
Existing gitweb users will need to adjust their gitweb.conf to point to
the new location of the projects.list file.
Removing the old projects.list from
~git/repositories/gitosis-admin.git/projects.list is safe once gitweb
has switched to using the new location.
Diffstat (limited to 'gitosis/util.py')
-rw-r--r-- | gitosis/util.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gitosis/util.py b/gitosis/util.py index 061660a..1c88ed1 100644 --- a/gitosis/util.py +++ b/gitosis/util.py @@ -21,3 +21,9 @@ def getRepositoryDir(config): repositories = os.path.join(repositories, path) return repositories +def getGeneratedFilesDir(config): + try: + generated = config.get('gitosis', 'generate-files-in') + except (NoSectionError, NoOptionError): + generated = os.path.expanduser('~/gitosis') + return generated |