jj icon indicating copy to clipboard operation
jj copied to clipboard

Can not clone URL with user part containing _

Open toxadx opened this issue 5 months ago • 2 comments

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

  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

toxadx avatar Jun 22 '25 20:06 toxadx

Reported as https://github.com/GitoxideLabs/gitoxide/issues/2056

The URL form ssh:// will probably work as a workaround.

yuja avatar Jun 23 '25 11:06 yuja

Thank you! Yes, using the ssh:// form like ssh://[email protected]/org/repo.git does indeed work as a workaround.

toxadx avatar Jun 23 '25 12:06 toxadx