From e88459e02b23f743921d1125f451ce279d15a5d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 11 Apr 2022 08:48:30 +0200 Subject: [PATCH] add another exception for github URLs for "osc add" osc#905 --- osc/commandline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 82df3375..29bed946 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -4819,7 +4819,9 @@ Please submit there instead, or use --nodevelproject to force direct submission. # Do some magic here, when adding a url. We want that the server to download the tar ball and to verify it for arg in parseargs(args): - if arg.endswith('.git') or arg.startswith('git://') or arg.startswith('git@') or arg.startswith('https://github.com') or arg.startswith('https://gitlab.com'): + if arg.endswith('.git') or arg.startswith('git://') or \ + arg.startswith('git@') or (arg.startswith('https://github.com') and not '/releases/' in arg) or \ + arg.startswith('https://gitlab.com'): addGitSource(arg) elif arg.startswith('http://') or arg.startswith('https://') or arg.startswith('ftp://'): addDownloadUrlService(arg)