cmds.projects.CmdListRepos.run(): Fix trailing newline

projects list-repos prints a traling newline, remove that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-03-20 09:38:26 +01:00
commit 5078c27682

View file

@ -39,7 +39,8 @@ class CmdListRepos(Cmd): # export
if password is not None: if password is not None:
ssh.set_password(password) ssh.set_password(password)
cmd = ['/opt/jw-pkg/bin/git-srv-admin.sh', '-u', args.from_owner, '-j', 'list-personal-projects'] 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 return
case 'https': case 'https':
cmd_input = None cmd_input = None