From db0055dc786a71fe81e720bad2b1acb0e133a291 Mon Sep 17 00:00:00 2001 From: Edward Lemur Date: Fri, 21 Dec 2018 19:02:23 +0000 Subject: [PATCH] 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/1382946 Reviewed-by: Andrii Shyshkalov Commit-Queue: Edward Lesmes --- presubmit_canned_checks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py index 144357cee..8f95c7ed8 100644 --- a/presubmit_canned_checks.py +++ b/presubmit_canned_checks.py @@ -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(