aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommi Virtanen <tv@eagain.net>2007-09-03 21:58:01 -0700
committerTommi Virtanen <tv@eagain.net>2007-09-03 22:06:37 -0700
commit4d793f6fd44e671c13ca0e0b82be3ac33ee7a599 (patch)
tree34e0d39d81f48c40ac230a289aa323f494852db9 /gitosis
parentLet SSH public key user fields have a bit more varied content. (diff)
downloadgitosis-gentoo-4d793f6fd44e671c13ca0e0b82be3ac33ee7a599.tar.gz
gitosis-gentoo-4d793f6fd44e671c13ca0e0b82be3ac33ee7a599.tar.bz2
gitosis-gentoo-4d793f6fd44e671c13ca0e0b82be3ac33ee7a599.zip
Make sure ~git/.ssh exists in gitosis-init.
Diffstat (limited to 'gitosis')
-rw-r--r--gitosis/init.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitosis/init.py b/gitosis/init.py
index 7ba04cd..2155f81 100644
--- a/gitosis/init.py
+++ b/gitosis/init.py
@@ -135,6 +135,7 @@ class Main(app.App):
user=user,
)
log.info('Running post-update hook...')
+ util.mkdir(os.path.expanduser('~/.ssh'), 0700)
run_hook.post_update(cfg=cfg, git_dir=admin_repository)
log.info('Symlinking ~/.gitosis.conf to repository...')
symlink_config(git_dir=admin_repository)