1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 18:50:09 +02:00

Merge branch 'scan_giturls' into 'master'

get_app_from_url: add codeberg.org as git url

See merge request fdroid/fdroidserver!737
This commit is contained in:
Hans-Christoph Steiner 2020-04-15 12:27:08 +00:00
commit 1b0b4fc57d

View File

@ -1789,6 +1789,10 @@ def get_app_from_url(url):
app.IssueTracker = url + '/issues'
# Figure out the repo type and adddress...
app.RepoType, app.Repo = getrepofrompage(url)
elif parsed.netloc == 'codeberg.org':
app.RepoType = 'git'
app.SourceCode = url
app.IssueTracker = url + '/issues'
elif url.startswith('https://') and url.endswith('.git'):
app.RepoType = 'git'