Skip to content

Commit 2dfa294

Browse files
committed
Fix a missing variable
1 parent 421cd97 commit 2dfa294

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/git-sync-check.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ def self.check_consistency
120120
attempts -= 1
121121
if attempts > 0
122122
# Automatically fix inconsistency if it's master, but never sync random new branches.
123-
if e.errors.key?('refs/heads/master')
123+
ref = 'refs/heads/master'
124+
if e.errors.key?(ref)
124125
remote_ref, local_rev = e.errors['refs/heads/master']
125126
puts "Fixing inconsistency ref:#{ref.inspect} remote:#{remote_rev.inspect} local:#{local_rev.inspect}"
126127
unless system('/home/git/git.ruby-lang.org/bin/update-ruby.sh', File.basename(ref))

0 commit comments

Comments
 (0)