diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-08-23 13:56:48 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-08-23 13:56:49 -0700 |
commit | 455297d652829c9c6f68bc4224588967f41191f7 (patch) | |
tree | c0fa503d3cb3bcc3d1a30283d3e2fc3b7ea85f32 /tool | |
parent | c6a07cc33fee26b03afa20d3e94e9332e09a2d07 (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')
-rwxr-xr-x | tool/sync_default_gems.rb | 2 |
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}") |