-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
Hello, I am using your code too fetch some data from my local Gitlab server.
The thing is that line 68 in the file submodule_to_project.py the parsed.platform is hard coded 'gitlab' but on my local server this name isn't 'gitlab' but 'base'. There is two way to fix my problem, the dirty way : replace the "or" by a "and' inside the if. You can also set a parameter to this function and depending one to give the name of the gitlab platform.
Here is the part of the code i am talking about :
# giturlparse.GitUrlParsed.platform is too permissive and will be set to
# 'gitlab' for some non-gitlab urls, for instance:
# https://opensource.ncsa.illinois.edu/bitbucket/scm/u3d/3dutilities.git
if (parsed.platform != 'gitlab'
or all([host not in parsed.host for host in gitlab_hosts])):
logger.warning(f'submodule git url is not hosted on gitlab: {url}')
return None
Thanks in advance for any response.
Metadata
Metadata
Assignees
Labels
No labels