5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 21:56:21 +00:00

fix: informar qué está pasando
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
f 2023-09-21 13:04:25 -03:00
parent 69e1664084
commit e4dc6588f9
No known key found for this signature in database

View file

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