aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Virtanen <tv@eagain.net>2007-12-11 22:29:43 +0200
committerTommi Virtanen <tv@eagain.net>2007-12-11 22:29:43 +0200
commita5a758a4077196e9ac32811a6c8ae003efb249df (patch)
tree458031a2c6faea73c26de62b5d84195d61358d7d
parentWrite gitweb projects.list to ~/gitosis, not inside the gitosis-admin repo. (diff)
downloadgitosis-gentoo-a5a758a4077196e9ac32811a6c8ae003efb249df.tar.gz
gitosis-gentoo-a5a758a4077196e9ac32811a6c8ae003efb249df.tar.bz2
gitosis-gentoo-a5a758a4077196e9ac32811a6c8ae003efb249df.zip
Create ~git/gitosis in gitosis-init.
This fixes problems with e.g. "No such file or directory: '/.../git/gitosis/projects.list.42.tmp'" in generate_project_list when running gitosis-init. Existing users need to run:: sudo install -d -m0755 -o git -g git ~git/gitosis adjust the user and group name if necessary. Alternatively, just rerun gitosis-init.
-rw-r--r--gitosis/init.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gitosis/init.py b/gitosis/init.py
index 2155f81..c7443b1 100644
--- a/gitosis/init.py
+++ b/gitosis/init.py
@@ -125,6 +125,9 @@ class Main(app.App):
log.error('Cannot parse user from SSH public key.')
sys.exit(1)
log.info('Admin user is %r', user)
+ log.info('Creating generated files directory...')
+ generated = util.getGeneratedFilesDir(config=cfg)
+ util.mkdir(generated)
log.info('Creating repository structure...')
repositories = util.getRepositoryDir(cfg)
util.mkdir(repositories)