diff options
author | Tommi Virtanen <tv@eagain.net> | 2007-12-31 21:11:22 +0200 |
---|---|---|
committer | Tommi Virtanen <tv@eagain.net> | 2007-12-31 21:11:22 +0200 |
commit | e495c9a66e583f009a53af865eacca3a5e7b953e (patch) | |
tree | 2b1f9d5b923160309a81e963fee1959b4b73c06d /gitosis/util.py | |
parent | Allow using fast_import for more than initial commit. (diff) | |
download | gitosis-dakkar-e495c9a66e583f009a53af865eacca3a5e7b953e.tar.gz gitosis-dakkar-e495c9a66e583f009a53af865eacca3a5e7b953e.tar.bz2 gitosis-dakkar-e495c9a66e583f009a53af865eacca3a5e7b953e.zip |
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.
Diffstat (limited to 'gitosis/util.py')
-rw-r--r-- | gitosis/util.py | 7 |
1 files changed, 7 insertions, 0 deletions
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 |