aboutsummaryrefslogtreecommitdiff
path: root/gitosis/ssh.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitosis/ssh.py')
-rw-r--r--gitosis/ssh.py5
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'