mirror of
https://git.sprinternet.at/h44z/gitlab_to_gitea.git
synced 2024-11-21 22:33:05 +00:00
„migrate.py“ ändern
fix empty check
This commit is contained in:
parent
15dec56422
commit
540f2f35d0
@ -376,7 +376,7 @@ def _import_project_issues(gitea_api: pygitea, issues: [gitlab.v4.objects.Projec
|
|||||||
def _import_project_repo(gitea_api: pygitea, project: gitlab.v4.objects.Project):
|
def _import_project_repo(gitea_api: pygitea, project: gitlab.v4.objects.Project):
|
||||||
if not repo_exists(gitea_api, project.namespace['name'], project.name):
|
if not repo_exists(gitea_api, project.namespace['name'], project.name):
|
||||||
clone_url = project.http_url_to_repo
|
clone_url = project.http_url_to_repo
|
||||||
if GITLAB_ADMIN_PASS is '' and GITLAB_ADMIN_USER is '':
|
if GITLAB_ADMIN_PASS == '' and GITLAB_ADMIN_USER == '':
|
||||||
clone_url = project.ssh_url_to_repo
|
clone_url = project.ssh_url_to_repo
|
||||||
private = project.visibility == 'private' or project.visibility == 'internal'
|
private = project.visibility == 'private' or project.visibility == 'internal'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user