From 540f2f35d0a5c55c21b363527e43bd7580d9a9a3 Mon Sep 17 00:00:00 2001 From: h44z Date: Fri, 29 May 2020 08:10:17 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Emigrate.py=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix empty check --- migrate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrate.py b/migrate.py index 2660e8e..c4faeb4 100644 --- a/migrate.py +++ b/migrate.py @@ -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): if not repo_exists(gitea_api, project.namespace['name'], project.name): 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 private = project.visibility == 'private' or project.visibility == 'internal'