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

fix: process SSH git URLs #1227

Merged
merged 1 commit into from
Dec 8, 2021
Merged

fix: process SSH git URLs #1227

merged 1 commit into from
Dec 8, 2021

Conversation

Alchez
Copy link
Contributor

@Alchez Alchez commented Dec 7, 2021

Trying to run the following command: bench get-app git@github.com:org/repo.git would result in the URL being transformed to https://github.com/git@github.com:org/repo.git, which errors out and get-app fails.

Alternatives:
This isn't the best way to handle this, and we could use something like giturlparse. But I didn't want to add a dependency right now without getting some feedback.

@ankush
Copy link
Member

ankush commented Dec 8, 2021

IIRC this used to work before, I almost exclusively use ssh URLs for all the apps. Not sure what broke it.

@Alchez
Copy link
Contributor Author

Alchez commented Dec 8, 2021

@ankush, I think the rework branched out the logic for processing git URLs, which is good design, but the SSH side wasn't setup at this place

Copy link
Member

@ankush ankush left a comment

Choose a reason for hiding this comment

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

Works as expected.

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