File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -119,13 +119,14 @@ def self.check_consistency
119
119
rescue GitSyncCheck ::Errors => e
120
120
attempts -= 1
121
121
if attempts > 0
122
- # Automatically fix inconsistency if it's master, but never sync random new branches.
123
- ref = 'refs/heads/master'
124
- if e . errors . key? ( ref )
125
- remote_rev , local_rev = e . errors [ 'refs/heads/master' ]
126
- puts "Fixing inconsistency ref:#{ ref . inspect } remote:#{ remote_rev . inspect } local:#{ local_rev . inspect } "
127
- unless system ( '/home/git/git.ruby-lang.org/bin/update-ruby.sh' , File . basename ( ref ) )
128
- raise "Failed to execute update-ruby.sh for #{ ref } "
122
+ # Automatically fix inconsistency if it's master or notes, but never sync random new branches.
123
+ [ 'refs/heads/master' , 'refs/notes/commits' ] . each do |ref |
124
+ if e . errors . key? ( ref )
125
+ remote_rev , local_rev = e . errors [ 'refs/heads/master' ]
126
+ puts "Fixing inconsistency ref:#{ ref . inspect } remote:#{ remote_rev . inspect } local:#{ local_rev . inspect } "
127
+ unless system ( '/home/git/git.ruby-lang.org/bin/update-ruby.sh' , File . basename ( ref ) )
128
+ raise "Failed to execute update-ruby.sh for #{ ref } "
129
+ end
129
130
end
130
131
end
131
132
sleep 5
You can’t perform that action at this time.
0 commit comments