diff --git a/gitosis/app.py b/gitosis/app.py index 9135446..a999f18 100644 --- a/gitosis/app.py +++ b/gitosis/app.py @@ -38,7 +38,7 @@ class App(object): self.handle_args(parser, cfg, options, args) def setup_basic_logging(self): - logging.basicConfig(filename='gitosis.log', level="DEBUG") + logging.basicConfig(filename='gitosis.log', level=10) def create_parser(self): parser = optparse.OptionParser() diff --git a/gitosis/init.py b/gitosis/init.py index c176b73..28dbcd2 100644 --- a/gitosis/init.py +++ b/gitosis/init.py @@ -36,7 +36,7 @@ def ssh_extract_user(pubkey): if not re.search(r"\s", pubkey): _, user = pubkey.rsplit(None, 1) else: - user = pubkey + user = pubkey.strip() if ssh.isSafeUsername(user): return user else: