mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 07:22:29 +03:00
Merge branch 'import' into 'master'
import: fix raw git-over-https urls See merge request !196
This commit is contained in:
commit
fcba707c86
1 changed files with 6 additions and 0 deletions
|
@ -116,6 +116,12 @@ def get_metadata_from_url(app, url):
|
||||||
if not repotype:
|
if not repotype:
|
||||||
logging.error("Unable to determine vcs type. " + repo)
|
logging.error("Unable to determine vcs type. " + repo)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
elif url.startswith('https://') and url.endswith('.git'):
|
||||||
|
projecttype = 'git'
|
||||||
|
repo = url
|
||||||
|
repotype = 'git'
|
||||||
|
app.SourceCode = ""
|
||||||
|
app.WebSite = ""
|
||||||
if not projecttype:
|
if not projecttype:
|
||||||
logging.error("Unable to determine the project type.")
|
logging.error("Unable to determine the project type.")
|
||||||
logging.error("The URL you supplied was not in one of the supported formats. Please consult")
|
logging.error("The URL you supplied was not in one of the supported formats. Please consult")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue