Commit d9be4a40 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

data["forked_from_project"] is not None

parent 656fe26d
Pipeline #1920 passed with stages
in 1 minute and 7 seconds
......@@ -898,7 +898,7 @@ def update_gitlab(forge, data):
repo.default_branch = data['default_branch']
repo.description = data['description']
# TODO license (https://gitlab.com/gitlab-org/gitlab-ce/issues/28267), open_pr
if 'forked_from_project' in data and 'id' in data['forked_from_project']:
if 'forked_from_project' in data and data['forked_from_project'] is not None:
repo.forked_from = data['forked_from_project']['id']
elif created or project.main_namespace is None:
project.main_namespace = namespace
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment