Commit db0055dc authored by Edward Lemur's avatar Edward Lemur Committed by Commit Bot

presubmit: Fix CheckOwnersFormat

Fix CheckOwnersFormat so that it checks the new OWNERS files instead of the
original ones.

Change-Id: I4abb1cfc847bd28f45b9948fe7775c10dcc8a420
Reviewed-on: https://chromium-review.googlesource.com/c/1382946Reviewed-by: 's avatarAndrii Shyshkalov <tandrii@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
parent 58649e34
......@@ -840,7 +840,9 @@ def CheckOwnersFormat(input_api, output_api):
if not affected_files:
return []
try:
input_api.owners_db.load_data_needed_for(affected_files)
owners_db = input_api.owners_db
owners_db.override_files = {}
owners_db.load_data_needed_for(affected_files)
return []
except Exception as e:
return [output_api.PresubmitError(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment