mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-17 03:36:22 +00:00
This commit is contained in:
parent
69e1664084
commit
e4dc6588f9
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue