1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-05 10:58:07 +01:00

Merge pull request #834 from adrianschroeter/github_hack

catch URLs to github.com and gitlab.com as git repos
This commit is contained in:
Marco Strigl 2020-09-01 14:10:16 +02:00 committed by GitHub
commit 1649fe47df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)