mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Merge branch 'import' into 'master'
import: Fix usage of .git suffix for gitlab urls See merge request !107
This commit is contained in:
commit
3c3e8e5b85
1 changed files with 3 additions and 3 deletions
|
@ -97,10 +97,10 @@ def get_metadata_from_url(app, url):
|
||||||
projecttype = 'gitlab'
|
projecttype = 'gitlab'
|
||||||
# git can be fussy with gitlab URLs unless they end in .git
|
# git can be fussy with gitlab URLs unless they end in .git
|
||||||
if url.endswith('.git'):
|
if url.endswith('.git'):
|
||||||
repo = url
|
url = url[:-4]
|
||||||
else:
|
|
||||||
repo = url + '.git'
|
repo = url + '.git'
|
||||||
repotype = 'git'
|
repotype = 'git'
|
||||||
|
app.WebSite = url
|
||||||
app.SourceCode = url + '/tree/HEAD'
|
app.SourceCode = url + '/tree/HEAD'
|
||||||
app.IssueTracker = url + '/issues'
|
app.IssueTracker = url + '/issues'
|
||||||
elif url.startswith('https://bitbucket.org/'):
|
elif url.startswith('https://bitbucket.org/'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue