Skip to content

Couldn't determine repo owner and name from url #266

Description

@pluiez

Hi, I'm using privately hosted gitlab and encounterd the following error. I have checked #162 and #244 but I cound't find solution to my problem.

ERROR: Fatal exception
Traceback (most recent call last):
  File "/opt/anaconda3/lib/python3.12/site-packages/ghstack/logs.py", line 105, in manager
    yield
  File "/opt/anaconda3/lib/python3.12/site-packages/ghstack/cli.py", line 46, in cli_context
    yield shell, config, github
  File "/opt/anaconda3/lib/python3.12/site-packages/ghstack/cli.py", line 258, in submit
    ghstack.submit.main(
  File "/opt/anaconda3/lib/python3.12/site-packages/ghstack/submit.py", line 260, in main
    submitter = Submitter(**kwargs)
                ^^^^^^^^^^^^^^^^^^^
  File "<string>", line 24, in __init__
  File "/opt/anaconda3/lib/python3.12/site-packages/ghstack/submit.py", line 380, in __post_init__
    repo = ghstack.github_utils.get_github_repo_info(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/lib/python3.12/site-packages/ghstack/github_utils.py", line 71, in get_github_repo_info
    name_with_owner = get_github_repo_name_with_owner(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/lib/python3.12/site-packages/ghstack/github_utils.py", line 44, in get_github_repo_name_with_owner
    raise RuntimeError(
RuntimeError: Couldn't determine repo owner and name from url: git@git.COMPANY_NAME.com:PROJECT_NAME/TEAM_NAME/REPO_NAME.git

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions