mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Add support for gitlab.com repos to import
This commit is contained in:
parent
67630b6c72
commit
8675d50261
1 changed files with 5 additions and 6 deletions
|
|
@ -138,13 +138,12 @@ def main():
|
||||||
sourcecode = ""
|
sourcecode = ""
|
||||||
website = ""
|
website = ""
|
||||||
elif url.startswith('https://github.com'):
|
elif url.startswith('https://github.com'):
|
||||||
if url.endswith('/'):
|
|
||||||
url = url[:-1]
|
|
||||||
if url.endswith('.git'):
|
|
||||||
logging.info("A github URL should point to the project, not the git repo")
|
|
||||||
sys.exit(1)
|
|
||||||
projecttype = 'github'
|
projecttype = 'github'
|
||||||
repo = url + '.git'
|
repotype = 'git'
|
||||||
|
sourcecode = url
|
||||||
|
issuetracker = url + '/issues'
|
||||||
|
elif url.startswith('https://gitlab.com/'):
|
||||||
|
projecttype = 'gitlab'
|
||||||
repotype = 'git'
|
repotype = 'git'
|
||||||
sourcecode = url
|
sourcecode = url
|
||||||
issuetracker = url + '/issues'
|
issuetracker = url + '/issues'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue