mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-02-18 15:28:27 -05: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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user