Skip to content

Can not clone URL with user part containing _ #6810

Open
@toxadx

Description

@toxadx

Description

I am not able to clone repositories via SSH if the URL contains an underscore in the user part.
For example: _git@source.example.tld:org/repo.git or g_it@source.example.tld:org/repo.git.

Running git clone directly works without any problems.

Steps to Reproduce the Problem

  1. Run jj git clone using an SSH URL with an underscore in the user part.

Expected Behavior

The repository should be cloned successfully, just as it works with git clone.

Actual Behavior

The command fails with the error

Fetching into new repo in "/tmp/repo"
Error: Git process failed: External git program failed:
vdollar_percent_expand: unknown key %5
percent_dollar_expand: failed
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Specifications

  • Platform: OpenBSD 7.7
  • Version: 0.30

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