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 for SSH URLs when using hg repository type #11878

Merged
merged 2 commits into from
Mar 20, 2024
Merged

Conversation

gaxweb
Copy link
Contributor

@gaxweb gaxweb commented Mar 8, 2024

This fixes ticket #11874

It was declared a feature, so I've chosen the main branch. I also applied a few minor fixups to docblocks for example. I hope that's ok, otherwise let me know and I'll remove them.

For the fix itself, I basically just adjusted the regex to allow "ssh" and to grab the password more reliably, even though the latter isn't even used. Worked fine with the repo I'm using, if the SSH key is set up in both the repo and the workstation you're issuing the pull from.

@gaxweb gaxweb force-pushed the main branch 4 times, most recently from faa6ff0 to c1f6491 Compare March 8, 2024 12:21
src/Composer/Util/Hg.php Outdated Show resolved Hide resolved
src/Composer/Util/Hg.php Outdated Show resolved Hide resolved
src/Composer/Util/Hg.php Outdated Show resolved Hide resolved
src/Composer/Util/Hg.php Show resolved Hide resolved
@Seldaek Seldaek merged commit a6947f1 into composer:main Mar 20, 2024
18 of 20 checks passed
@Seldaek
Copy link
Member

Seldaek commented Mar 20, 2024

Ok thanks for the PR. I did some more changes to the regex, hopefully you can check with latest composer snapshot that this is still working well for you.

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.

None yet

4 participants