From 50744fc41e1624817583f09ee13dd91ca2187478 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Thu, 20 Nov 2025 10:56:47 +0100 Subject: [PATCH] build.cmds.CmdListRepos: Pass -f to curl curl exits with 0 success status, even if the server returns HTTP 401. Passing -f fixes that and has curl error out with exit code 22. It doesn't show which error, though. Signed-off-by: Jan Lindemann --- src/python/jw/build/cmds/CmdListRepos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/jw/build/cmds/CmdListRepos.py b/src/python/jw/build/cmds/CmdListRepos.py index 243dafdb..8334ca01 100644 --- a/src/python/jw/build/cmds/CmdListRepos.py +++ b/src/python/jw/build/cmds/CmdListRepos.py @@ -41,6 +41,7 @@ class CmdListRepos(Cmd): # export case 'https': if re.match(r'https://github.com', args.base_url): curl_args = [ + '-f', '-H', 'Accept: application/vnd.github+json', '-H', @@ -53,7 +54,7 @@ class CmdListRepos(Cmd): # export return if re.match(r'https://', args.base_url): # assume Forgejo Backend - curl_args = [] + curl_args = ['-f'] if re.match(r'https://janware.test', args.base_url): curl_args.append('--insecure') curl_args.extend([