Skip to content

Commit e6f416d

Browse files
committed
Fix a wrong ref usage
1 parent 15b4949 commit e6f416d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/git-sync-check.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def self.check_consistency
122122
# Automatically fix inconsistency if it's master or notes, but never sync random new branches.
123123
['refs/heads/master', 'refs/notes/commits'].each do |ref|
124124
if e.errors.key?(ref)
125-
remote_rev, local_rev = e.errors['refs/heads/master']
125+
remote_rev, local_rev = e.errors[ref]
126126
puts "Fixing inconsistency ref:#{ref.inspect} remote:#{remote_rev.inspect} local:#{local_rev.inspect}"
127127
unless system('/home/git/git.ruby-lang.org/bin/update-ruby.sh', File.basename(ref))
128128
raise "Failed to execute update-ruby.sh for #{ref}"

0 commit comments

Comments
 (0)