1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-11-11 08:28:52 +01:00

Fix 'git-obs api' by preventing of quoting the URL query part

This commit is contained in:
2025-06-18 14:41:43 +02:00
parent cfaf9a060b
commit 074448263d

View File

@@ -29,7 +29,15 @@ class ApiCommand(osc.commandline_git.GitObsCommand):
self.print_gitea_settings()
url = self.gitea_conn.makeurl(args.url)
# we need to preserve query without quoting
if "?" in args.url:
url, query = args.url.split("?", 1)
else:
url, query = args.url, None
url = self.gitea_conn.makeurl(url)
if query:
url += f"?{query}"
json_data = None
if args.data: