diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2008-07-11 13:34:57 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2008-07-11 13:34:57 -0700 |
commit | 147ae8b7f3f99d3429467137053caa0f1a6f5a85 (patch) | |
tree | 08c8aa091a63b75372088ba803eeabce8732fc22 | |
parent | Avoid trailing whitespace messing up the keyname. (diff) | |
download | gitosis-dakkar-147ae8b7f3f99d3429467137053caa0f1a6f5a85.tar.gz gitosis-dakkar-147ae8b7f3f99d3429467137053caa0f1a6f5a85.tar.bz2 gitosis-dakkar-147ae8b7f3f99d3429467137053caa0f1a6f5a85.zip |
Ignore some useless lines.
-rw-r--r-- | gitosis/ssh.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gitosis/ssh.py b/gitosis/ssh.py index b3d5bd0..6223866 100644 --- a/gitosis/ssh.py +++ b/gitosis/ssh.py @@ -28,7 +28,10 @@ def readKeys(keydir): fp = file(path) for line in fp: line = line.rstrip('\n') - yield (basename, sshkey.get_ssh_pubkey(line)) + if line.startswith('#'): + continue + if len(line) > 0: + yield (basename, sshkey.get_ssh_pubkey(line)) fp.close() COMMENT = '### autogenerated by gitosis, DO NOT EDIT' |