jj
jj copied to clipboard
Can not clone URL with user part containing _
Description
I am not able to clone repositories via SSH if the URL contains an underscore in the user part. For example: [email protected]:org/repo.git or [email protected]:org/repo.git.
Running git clone directly works without any problems.
Steps to Reproduce the Problem
- 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
Reported as https://github.com/GitoxideLabs/gitoxide/issues/2056
The URL form ssh:// will probably work as a workaround.
Thank you! Yes, using the ssh:// form like ssh://[email protected]/org/repo.git does indeed work as a workaround.