mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 23:23:27 +02:00
import: append .git to gitlab URLs, git sometimes freaks out otherwise
From my experience, gitlab URLs need to end in .git for git to always be happy using them.
This commit is contained in:
parent
c80c1bf017
commit
48397bfa3c
@ -95,7 +95,11 @@ def get_metadata_from_url(app, url):
|
||||
app['Web Site'] = ""
|
||||
elif url.startswith('https://gitlab.com/'):
|
||||
projecttype = 'gitlab'
|
||||
repo = url
|
||||
# git can be fussy with gitlab URLs unless they end in .git
|
||||
if url.endswith('.git'):
|
||||
repo = url
|
||||
else:
|
||||
repo = url + '.git'
|
||||
repotype = 'git'
|
||||
app['Source Code'] = url + '/tree/HEAD'
|
||||
app['issuetracker'] = url + '/issues'
|
||||
|
Loading…
Reference in New Issue
Block a user