10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 421cd97 commit 2dfa294Copy full SHA for 2dfa294
bin/git-sync-check.rb
@@ -120,7 +120,8 @@ def self.check_consistency
120
attempts -= 1
121
if attempts > 0
122
# Automatically fix inconsistency if it's master, but never sync random new branches.
123
- if e.errors.key?('refs/heads/master')
+ ref = 'refs/heads/master'
124
+ if e.errors.key?(ref)
125
remote_ref, 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))
0 commit comments