Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow repository URI to start with ssh:// to use ports different to 22 #1472

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

FSchumacher
Copy link
Contributor

SSH repo URIs can be specified in two ways for jgit. ssh://user@host:port/path and a shorter one git@host:user/repopath.

This fix enables the usage of the former one. That enables the usage of ports different to port 22.

Note: As jgit supports another protocol named "git" directly, we should probably look for "git@" at the start instead of "git", as "git://" starts with "git", but is not an ssh protocol.

SSH repo URIs can be specified in two ways for jgit. ssh://user@host:port/path and a shorter one git@host:user/repopath.

This fix enables the usage of the former one. That enables the usage of ports different to port 22.

Note: As jgit supports another protocol named "git" directly, we should probably look for "git@" at the start instead of "git", as "git://" starts with "git", but is not an ssh protocol.
@mgubaidullin mgubaidullin merged commit 81e6b0e into apache:main Jan 16, 2025
3 checks passed
@mgubaidullin
Copy link
Contributor

Thanks @FSchumacher

@mgubaidullin mgubaidullin added this to the 4.8.3 milestone Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants