Skip to content

git commands with an sso origin fail with Error: invalid argument: 'port'; class=Invalid (3) #4177

@antholeole

Description

@antholeole

Description

I have an sso url as a git origin: sso://some-org/some-project. running any jj git command fails with Error: invalid argument: 'port'; class=Invalid (3). jj git fetch, jj git push -b my-branch, etc. It even fails to clone; jj git clone <sso url> fails with the same error.

In practice, I'm attempting to use jj in a google internal gerrit instance.

Steps to Reproduce the Problem

run jj git clone sso://anything which will fail before it attempts to make the api call. I don't think you actually need a sso repository setup, but if a googler looks at this ticket I can provide them my internal gerrit instance url to test it on.

Expected Behavior

it clones the repo

Actual Behavior

it fails with invalid argument port

Specifications

  • Platform: linux
  • Version: 0.17.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions