5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-20 14:36:21 +00:00

Merge branch 'issue-12919' of https://0xacab.org/sutty/sutty into 17.3.alpine.panel.sutty.nl

This commit is contained in:
Sutty 2023-09-21 16:05:06 +00:00
commit e407c58b9b

View file

@ -8,6 +8,7 @@ class SiteRenameOriginToUpstream < ActiveRecord::Migration[6.1]
next unless site.repository.origin&.url == ENV['SKEL_SUTTY'] next unless site.repository.origin&.url == ENV['SKEL_SUTTY']
site.repository.rugged.remotes.rename('origin', 'upstream') site.repository.rugged.remotes.rename('origin', 'upstream')
Rails.logger.info "#{site.name}: renamed origin to upstream"
rescue Rugged::Error => e rescue Rugged::Error => e
Rails.logger.warn "#{site.name}: #{e.message}" Rails.logger.warn "#{site.name}: #{e.message}"
end end