From: Boris Kraut Date: Wed, 21 Dec 2016 09:12:20 +0000 (+0100) Subject: import: fix raw git-over-https urls X-Git-Tag: 0.8~136^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e1dda886d7c87adf3eab329377bb961c9cb623d8;p=fdroidserver.git import: fix raw git-over-https urls --- diff --git a/fdroidserver/import.py b/fdroidserver/import.py index 60146536..5ba4323c 100644 --- a/fdroidserver/import.py +++ b/fdroidserver/import.py @@ -116,6 +116,12 @@ def get_metadata_from_url(app, url): if not repotype: logging.error("Unable to determine vcs type. " + repo) sys.exit(1) + elif url.startswith('https://') and url.endswith('.git'): + projecttype = 'git' + repo = url + repotype = 'git' + app.SourceCode = "" + app.WebSite = "" if not projecttype: logging.error("Unable to determine the project type.") logging.error("The URL you supplied was not in one of the supported formats. Please consult")