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

Case insensitive origin matching #4465

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

pstreef
Copy link
Contributor

@pstreef pstreef commented Sep 3, 2024

What's changed?

update GitRemote origin matching to be case insensitive

What's your motivation?

When a clone url has an incorrect or different case we still want to be able to match it against a registered origin.

Anything in particular you'd like reviewers to focus on?

We're comparing everything case-insensitive except for the protocol. Since the URI parsers do not like that.

Have you considered any alternatives or workarounds?

We went with lowercasing everything before, but that has more implications and impacts UX

Any additional context

Lowercasing was released and reverted before.

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

@pstreef pstreef self-assigned this Sep 3, 2024
@pstreef pstreef marked this pull request as draft September 3, 2024 12:09
@pstreef pstreef marked this pull request as ready for review September 3, 2024 15:22
@jkschneider jkschneider merged commit 25f442f into main Sep 3, 2024
2 checks passed
@jkschneider jkschneider deleted the feat/case-insensitive-origin-matching branch September 3, 2024 15:24
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