From 060ff5159b96870060036e1285b2a966bec76338 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 14 Feb 2026 18:08:29 +0000 Subject: [PATCH] jw.pkg.cmds.projects.CmdGetAuthInfo: Fix run_cmd() CmdGetAuthInfo calls run_cmd() with a list instead of a *-expanded list of arguments. Fix this to match the current run_cmd() prototype. And think again if the current prototype conforms to the priciple of least surprise: Most exec- / run- / whatever- functions do expect ether a string to be run by the shell, or an argv list. Signed-off-by: Jan Lindemann --- src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py b/src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py index be54b524..b77def11 100644 --- a/src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py +++ b/src/python/jw/pkg/cmds/projects/CmdGetAuthInfo.py @@ -29,7 +29,7 @@ class CmdGetAuthInfo(Cmd): # export if not os.path.isdir(jw_pkg_dir + '/.git'): log(DEBUG, f'jw-pkg directory is not a Git repo: {jw_pkg_dir}') return - remotes, stderr = await run_cmd(['git', '-C', jw_pkg_dir, 'remote', '-v']) + remotes, stderr = await run_cmd('git', '-C', jw_pkg_dir, 'remote', '-v') result: dict[str, str] = {} for line in remotes.split('\n'): if re.match(r'^\s*$', line):