mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-06 15:43:39 +02:00
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"
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user