Index: presubmit_canned_checks.py |
diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py |
index 6dfed2bf697fe0c409ede1024dff026848041e10..05b045de61fc5b22668322d61265db3d0c04020a 100644 |
--- a/presubmit_canned_checks.py |
+++ b/presubmit_canned_checks.py |
@@ -1107,7 +1107,9 @@ def CheckPatchFormatted(input_api, output_api): |
if code == 2: |
return [output_api.PresubmitPromptWarning( |
'The %s directory requires clang-formatting. ' |
- 'Please run git cl format %s' % (input_api.basename, input_api.basename))] |
+ 'Please run git cl format %s' % |
+ (input_api.basename(input_api.PresubmitLocalPath()), |
+ input_api.basename(input_api.PresubmitLocalPath())))] |
# As this is just a warning, ignore all other errors if the user |
# happens to have a broken clang-format, doesn't use git, etc etc. |
return [] |