From e495c9a66e583f009a53af865eacca3a5e7b953e Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Mon, 31 Dec 2007 21:11:22 +0200 Subject: Make post-update hook reload config after writing it out. Without this, any changes to repository settings would only be applied after one extra (non-empty) push. Add unit test coverage for the post-update hook. Make SSH authorized_keys path configurable, mostly for unit tests. --- gitosis/util.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gitosis/util.py') diff --git a/gitosis/util.py b/gitosis/util.py index 1c88ed1..a1b8c76 100644 --- a/gitosis/util.py +++ b/gitosis/util.py @@ -27,3 +27,10 @@ def getGeneratedFilesDir(config): except (NoSectionError, NoOptionError): generated = os.path.expanduser('~/gitosis') return generated + +def getSSHAuthorizedKeysPath(config): + try: + path = config.get('gitosis', 'ssh-authorized-keys-path') + except (NoSectionError, NoOptionError): + path = os.path.expanduser('~/.ssh/authorized_keys'), + return path -- cgit v1.2.3