install.sh: respect git config --global clone.defaultRemoteName#3548
install.sh: respect git config --global clone.defaultRemoteName#3548ryan-williams wants to merge 3 commits intonvm-sh:masterfrom
install.sh: respect git config --global clone.defaultRemoteName#3548Conversation
Co-authored-by: Jordan Harband <ljharb@gmail.com>
ryan-williams
left a comment
There was a problem hiding this comment.
Thanks. I looked at install_nvm_from_git but am not sure how I should test this there. Would a GHA be a better place to test it?
Also it looks like the 2 GHAs that failed are also failing on master, so I'm assuming I can ignore those here.
|
Yes, GHA is the better place to add new tests, and yes, those v0.40.0 tests will fail forever and that's ok :-) |
|
I can make a standalone GHA that tests this, is that what you have in mind @ljharb? I looked at the existing tests a bit last month, but couldn't get oriented. |
|
It'd be best to add it inside the existing test suite |
|
I just encountered this problem. Thanks for fixing. My idea was to force the clone to use |
|
@LemmingAvalanche what will that do on a git version that doesn't support |
But you can override the config variable instead of using But |
|
Thanks! We can use |
Fixes #3547
Uses
git config --global clone.defaultRemoteName, if it is set, otherwise falls back toorigin.