Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(851)

Unified Diff: presubmit_canned_checks.py

Issue 665493002: Fix clang-format canned check warning text (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 []
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698