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

Normalize server URLs to avoid missing scheme #4780

Merged
merged 5 commits into from
Dec 12, 2024

Conversation

pstreef
Copy link
Contributor

@pstreef pstreef commented Dec 12, 2024

This changes the output slightly (no more user in the URL) but that is fine as the user is not required/used in matching anyway.

Also fixed the comment and exception text.

This changes the output slightly (no more user in the URL) but that is fine as the user is not required/used in matching anyway.

Also fixed the comment and exception text.
GitLab, scm.company.com/context/gitlab, group/subgroup/repo, https, https://scm.company.com/context/gitlab/group/subgroup/repo.git
GitLab, scm.company.com:8443/context/gitlab, group/subgroup/repo, https, https://scm.company.com:8443/context/gitlab/group/subgroup/repo.git
GitLab, scm.company.com/context/gitlab, group/subgroup/repo, ssh, ssh://[email protected]:8022/context/gitlab/group/subgroup/repo.git
Copy link
Contributor

@bryceatmoderne bryceatmoderne Dec 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you confirm this will not cause problem when trying to close using ssh?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, thinking some more on it maybe this can cause problems if a local env requires it to match the right user/pw

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted and changed to normalize on the fly during protocol matching

@pstreef pstreef changed the title Pre-normalize server URLs to avoid missing scheme or other pieces. Normalize server URLs to avoid missing scheme Dec 12, 2024
@pstreef pstreef merged commit f4f1996 into main Dec 12, 2024
2 checks passed
@pstreef pstreef deleted the feat/pre-normalize-urls-to-avoid-missing-pieces branch December 12, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants