If you have git configured to omit path prefixes for git diff, check-webkit-style fails:
** Presubmit ERRORS **
check-webkit-style failed
ERROR: Unexpected line change without file path declaration: '@@ -33,6 +33,7 @@'
Traceback (most recent call last):
File "/s/c/src/third_party/WebKit/Tools/Scripts/check-webkit-style", line 48, in <module>
sys.exit(CheckWebKitStyle().main())
File "/s/c/src/third_party/WebKit/Tools/Scripts/webkitpy/style/main.py", line 155, in main
patch_checker.check(patch)
File "/s/c/src/third_party/WebKit/Tools/Scripts/webkitpy/style/patchreader.py", line 58, in check
patch_files = DiffParser(patch_string.splitlines()).files
File "/s/c/src/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/diff_parser.py", line 134, in __init__
self.files = self._parse_into_diff_files(diff_input)
File "/s/c/src/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/diff_parser.py", line 174, in _parse_into_diff_files
current_file.add_unchanged_line(old_diff_line, new_diff_line, line[1:])
AttributeError: 'NoneType' object has no attribute 'add_unchanged_line'
diff_parser expects filenames to begin with a prefix, but the git diff command that creates the patch doesn't configure it to always have them.
Comment 1 by bugdroid1@chromium.org
, Apr 25 2016