Skip to content

Multi-level projects do not work as expected #3

@nickmarden

Description

@nickmarden

Expected: if the destination path in Gitlab is top-group/subgroup/repo then the group ID of top-group/subgroup will be used to create repo inside that subgroup

Actual: the code fails with:

Traceback (most recent call last):
  File "/Users/nick/venv/github2gitlab/tmp/../bin/github2gitlab", line 25, in <module>
    sys.exit(GitHub2GitLab.factory(sys.argv[1:]).run())
             ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/Users/nick/venv/github2gitlab/github2gitlab/main.py", line 134, in factory
    return GitHub2GitLab(GitHub2GitLab.get_parser().parse_args(argv))
  File "/Users/nick/venv/github2gitlab/github2gitlab/main.py", line 60, in __init__
    (self.args.gitlab_namespace,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     self.args.gitlab_name) = self.args.gitlab_repo.split('/')
     ^^^^^^^^^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions