Merge branch 'import' into 'master'

import: Fix usage of .git suffix for gitlab urls



See merge request !107
This commit is contained in:
Daniel Martí 2016-03-06 11:32:05 +00:00
commit 3c3e8e5b85

View file

@ -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:
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/'):