diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2007-12-18 01:14:14 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2007-12-18 01:14:14 -0800 |
commit | 0ac3f7ff39ef36a90011fbae9ab5392a7d97d093 (patch) | |
tree | 2a80b4577160eaf9ede4d8d26a004566673e126b /gitosis/ssh.py | |
parent | Add more testcases, and add coverage exclusion notations on places where we d... (diff) | |
download | gitosis-dakkar-0ac3f7ff39ef36a90011fbae9ab5392a7d97d093.tar.gz gitosis-dakkar-0ac3f7ff39ef36a90011fbae9ab5392a7d97d093.tar.bz2 gitosis-dakkar-0ac3f7ff39ef36a90011fbae9ab5392a7d97d093.zip |
Fix tabs for spaces.
Diffstat (limited to 'gitosis/ssh.py')
-rw-r--r-- | gitosis/ssh.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gitosis/ssh.py b/gitosis/ssh.py index 0d2d87f..fb15969 100644 --- a/gitosis/ssh.py +++ b/gitosis/ssh.py @@ -46,16 +46,16 @@ def generateAuthorizedKeys(keys): Genarate the lines for the Gitosis ~/.ssh/authorized_keys. """ TEMPLATE = ('command="gitosis-serve %(user)s",no-port-forwarding,' - +'no-X11-forwarding,no-agent-forwarding,no-pty %(key)s') + +'no-X11-forwarding,no-agent-forwarding,no-pty %(key)s') yield COMMENT for (user, key) in keys: yield TEMPLATE % dict(user=user, key=key) _COMMAND_RE = re.compile('^command="(/[^ "]+/)?gitosis-serve [^"]+",' - +'no-port-forwarding,no-X11-forwarding,' - +'no-agent-forwarding,no-pty' - +' .*') + +'no-port-forwarding,no-X11-forwarding,' + +'no-agent-forwarding,no-pty' + +' .*') def filterAuthorizedKeys(fp): """ |