1
0
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:
Hans-Christoph Steiner 2015-08-05 21:54:25 +02:00
parent c80c1bf017
commit 48397bfa3c

View File

@ -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'