1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-02-22 03:35:29 +01:00

Merge pull request #1839 from dmach/git-obs-api-query

Fix 'git-obs api' by preventing of quoting the URL query part
This commit is contained in:
2025-06-18 14:54:33 +02:00
committed by GitHub

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: