From 455297d652829c9c6f68bc4224588967f41191f7 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 23 Aug 2023 13:56:48 -0700 Subject: [PATCH] Use https for remotes by default I was testing this script on git.ruby-lang.org to use its git version, but it did not work because the server's default user doesn't have SSH keys. https works for everyone, so it's a safer default. You shouldn't need to push to that remote from ruby/ruby anyway. --- tool/sync_default_gems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 5c4cb0ae13..7c0bf1ddbd 100755 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -492,7 +492,7 @@ module SyncDefaultGems # Fetch the repository to be synchronized IO.popen(%W"git remote") do |f| unless f.read.split.include?(gem) - `git remote add #{gem} git@github.com:#{repo}.git` + `git remote add #{gem} https://github.com/#{repo}.git` end end system(*%W"git fetch --no-tags #{gem}")