From d1e27e536efdac7cffc78e8061aa834f74f91ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Wed, 31 Jul 2019 17:07:50 +0200 Subject: [PATCH] debug --- gitosis/app.py | 2 +- gitosis/init.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: