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

Use 7999 as Bitbucket DC default port #4414

Closed
wants to merge 1 commit into from

Conversation

pstreef
Copy link
Contributor

@pstreef pstreef commented Aug 14, 2024

What's changed?

Assume 7999 as a default SSH port for Bitbucket and strip it off. This way we can match the origin to the https origin (without port)

What's your motivation?

Currently when using the default port, we need to register 2 origins to make them both work. This can cause conflicts when switching between protocols.

Anyone you would like to review specifically?

@bryceatmoderne @kmccarp

Have you considered any alternatives or workarounds?

Not doing this

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 Aug 14, 2024
@pstreef pstreef marked this pull request as draft August 14, 2024 14:52
@@ -79,6 +79,8 @@ void parseUnknownRemote(String cloneUrl, String expectedOrigin, String expectedP
[email protected]:stash/org/repo.git, scm.company.com/stash, Bitbucket, org/repo, org, repo
ssh://scm.company.com/stash/org/repo, scm.company.com/stash, Bitbucket, org/repo, org, repo
ssh://scm.company.com:22/stash/org/repo, scm.company.com/stash, Bitbucket, org/repo, org, repo
ssh://scm.company.com:22/stash/org/repo, scm.company.com:22/stash, Bitbucket, org/repo, org, repo
ssh://scm.company.com:7999/stash/org/repo, scm.company.com/stash, Bitbucket, org/repo, org, repo
ssh://scm.company.com:7999/stash/org/repo, scm.company.com:7999/stash, Bitbucket, org/repo, org, repo

Copy link
Contributor

Choose a reason for hiding this comment

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

aren't these the same inputs? expected different results?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, the origin is both input and expected result

@pstreef pstreef mentioned this pull request Aug 14, 2024
3 tasks
@pstreef
Copy link
Contributor Author

pstreef commented Aug 20, 2024

@pstreef pstreef closed this Aug 20, 2024
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