oref0 icon indicating copy to clipboard operation
oref0 copied to clipboard

Update install script urls to use https protocol as git is deprecated

Open CarnageMarkus opened this issue 2 years ago • 3 comments

Trying to reinstall I got The unauthenticated git protocol on port 9418 is no longer supported. https://github.blog/2021-09-01-improving-git-protocol-security-github/

For existing repositories, if you’re having trouble fetching, check that the remote you are fetching from is an ssh:// or https:// If any of them start with git://, you should change the URL to a supported format.

https://github.com/openaps/oref0/blob/acb0150021e7bf284b6741a9510076a13f690747/bin/oref0-setup.sh#L736 https://github.com/openaps/oref0/blob/acb0150021e7bf284b6741a9510076a13f690747/bin/openaps-install.sh#L74

for existing installations, updating remotes also works: git remote set-url origin https://github.com/openaps/oref0

CarnageMarkus avatar Mar 27 '22 20:03 CarnageMarkus

Hi there, Apologies in advance my linux skills are basic at best. I am trying to rerun the setup script again to use a new loopable pump (i.e changed the SN in the oref0-runagain.sh script). I am receiving the above error about the protocol not being supported.

When I try and update the remote URL i get the errors below remote_setURL

Can i simply edit the oref0-setup.sh script and change line 736 to be https:// instead of git://

capitalzee avatar Apr 20 '22 07:04 capitalzee

Hi there, Apologies in advance my linux skills are basic at best. I am trying to rerun the setup script again to use a new loopable pump (i.e changed the SN in the oref0-runagain.sh script). I am receiving the above error about the protocol not being supported.

When I try and update the remote URL i get the errors below remote_setURL

Can i simply edit the oref0-setup.sh script and change line 736 to be https:// instead of git://

I fixed my issue by changing the git config to use https:// instead of git://

git config --global url."https://".insteadOf git://

capitalzee avatar Apr 20 '22 07:04 capitalzee

@capitalzee the error in your screenshot says you're running the "git remote" command in a directory that doesn't have a git repository checked out into it. The commend adds a new source code server into an existing checkout, so before running it, you need to use the cd command to go into the directory where the code is checked out. The git config change you posted cannot fix the original error condition implied in the screen cap.

sulkaharo avatar Apr 20 '22 11:04 sulkaharo