Expected Behavior
I executed fj pr checkout 1, expecting to have the forgejo CLI add a remote, fetch the relevant commits, and check out a new branch.
Actual Behavior
Instead of checking out the branch, an error message was displayed (redacted output provided):
[USER@HOST REPOSITORY_DIR]$ fj pr checkout 1
Error: the given reference name 'refs/heads/pr-git-ssh.h.wer.ee:2222-REDACTED-1' is not valid; class=Reference (4); code=InvalidSpec (-12)
Location:
src/prs.rs:1544:13
[USER@HOST REPOSITORY_DIR]$
Steps to Reproduce
Clone a repository from a forgejo instance that has an SSH server on a non-22 port, then attempt to check out a PR over SSH.
fj Version
fj v0.5.0
user agent: forgejo-cli/0.5.0 (https://codeberg.org/forgejo-contrib/forgejo-cli/)
build type: from source
target: x86_64-unknown-linux-gnu
Check for a new version with `fj version --check`
Additional information: AUR package forgejo-cli-git, version v0.5.0.r134.g4de88bd-1
Forgejo Version
15.0.2
Code of Conduct
- I agree to act in accordance with the CoC & AI Agreement.
- This issue was not generated by an LLM, even in part.