From 5078c276829c39c6c5adbfeedd91bac385f02cfa Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 20 Mar 2026 09:38:26 +0100 Subject: [PATCH] cmds.projects.CmdListRepos.run(): Fix trailing newline projects list-repos prints a traling newline, remove that. Signed-off-by: Jan Lindemann --- src/python/jw/pkg/cmds/projects/CmdListRepos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/jw/pkg/cmds/projects/CmdListRepos.py b/src/python/jw/pkg/cmds/projects/CmdListRepos.py index ff323691..79356ca5 100644 --- a/src/python/jw/pkg/cmds/projects/CmdListRepos.py +++ b/src/python/jw/pkg/cmds/projects/CmdListRepos.py @@ -39,7 +39,8 @@ class CmdListRepos(Cmd): # export if password is not None: ssh.set_password(password) cmd = ['/opt/jw-pkg/bin/git-srv-admin.sh', '-u', args.from_owner, '-j', 'list-personal-projects'] - print((await ssh.run(cmd)).decode().stdout) + result = await ssh.run(cmd) + print('\n'.join(result.stdout.decode().splitlines())) return case 'https': cmd_input = None