From de05ba9144ea849080df0ebda254c520cd7ff5b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Thu, 1 Aug 2019 22:54:42 +0200 Subject: [PATCH] loop fixed --- gitosis/principals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitosis/principals.py b/gitosis/principals.py index 41afc7c..68cb8ce 100644 --- a/gitosis/principals.py +++ b/gitosis/principals.py @@ -22,7 +22,7 @@ def serve_principal(sshUser, principals): +'no-X11-forwarding,no-agent-forwarding,no-pty %(principals)s') if '@' in sshUser: - for user in [ sshUser, sshUser.split('@')[0] ] + for user in [ sshUser, sshUser.split('@')[0] ]: print TEMPLATE % dict(user=user, principals=principals) else: print TEMPLATE % dict(user=sshUser, principals=principals)