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.
This commit is contained in:
Takashi Kokubun 2023-08-23 13:56:48 -07:00
Родитель c6a07cc33f
Коммит 455297d652
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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}")