summaryrefslogtreecommitdiff
path: root/tool/sync_default_gems.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-08-23 13:56:48 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-08-23 13:56:49 -0700
commit455297d652829c9c6f68bc4224588967f41191f7 (patch)
treec0fa503d3cb3bcc3d1a30283d3e2fc3b7ea85f32 /tool/sync_default_gems.rb
parentc6a07cc33fee26b03afa20d3e94e9332e09a2d07 (diff)
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.
Diffstat (limited to 'tool/sync_default_gems.rb')
-rwxr-xr-xtool/sync_default_gems.rb2
1 files changed, 1 insertions, 1 deletions
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}")