From 147ae8b7f3f99d3429467137053caa0f1a6f5a85 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Fri, 11 Jul 2008 13:34:57 -0700 Subject: Ignore some useless lines. --- gitosis/ssh.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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' -- cgit v1.2.3