From 9b245db2244e785fe0d6829a03dba6577c567f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Tue, 1 Sep 2020 13:50:18 +0200 Subject: [PATCH] catch URLs to github.com and gitlab.com as git repos yes, ugly, but I am tired to explain people to add a .git suffix to get the right mode for "osc add" --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 5bb6a907..68b13f44 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -4728,7 +4728,7 @@ 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@'): + if arg.endswith('.git') or arg.startswith('git://') or arg.startswith('git@') or arg.startswith('https://github.com') or arg.startswith('https://gitlab.com'): addGitSource(arg) elif arg.startswith('http://') or arg.startswith('https://') or arg.startswith('ftp://'): addDownloadUrlService(arg)