Skip to content

Commit 2444b8b

Browse files
committed
Log fixed inconsistency
1 parent 119f653 commit 2444b8b

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
@@ -116,7 +116,8 @@ def self.check_consistency
116116
rescue GitSyncCheck::Errors => e
117117
attempts -= 1
118118
if attempts > 0
119-
errors.each_key do |ref| # try fixing each ref automatically
119+
errors.each do |ref, (remote_rev, local_rev)|
120+
puts "Fixing inconsistency ref:#{ref.inspect} remote:#{remote_rev.inspect} local:#{local_rev.inspect}"
120121
unless system('/home/git/ruby-commit-hook/bin/update-ruby.sh', File.basename(ref))
121122
raise "Failed to execute update-ruby.sh for #{ref}"
122123
end

0 commit comments

Comments
 (0)