mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 22:40:12 +01:00
import: use .git suffix only for repo-url
This commit is contained in:
parent
495b2057ed
commit
f4ce1737d9
@ -97,10 +97,10 @@ def get_metadata_from_url(app, url):
|
||||
projecttype = 'gitlab'
|
||||
# git can be fussy with gitlab URLs unless they end in .git
|
||||
if url.endswith('.git'):
|
||||
repo = url
|
||||
else:
|
||||
repo = url + '.git'
|
||||
url = url[:-4]
|
||||
repo = url + '.git'
|
||||
repotype = 'git'
|
||||
app.WebSite = url
|
||||
app.SourceCode = url + '/tree/HEAD'
|
||||
app.IssueTracker = url + '/issues'
|
||||
elif url.startswith('https://bitbucket.org/'):
|
||||
|
Loading…
Reference in New Issue
Block a user