| Index: tools/presubmit.py
|
| diff --git a/tools/presubmit.py b/tools/presubmit.py
|
| index 553a5ae364152063391c04c6d879789664df205f..4dfa4e690a0bd8cc0813c5b9bde69ca0e7714810 100755
|
| --- a/tools/presubmit.py
|
| +++ b/tools/presubmit.py
|
| @@ -179,7 +179,8 @@ class SourceFileProcessor(object):
|
| all_files = [
|
| f.AbsoluteLocalPath()
|
| for f in files
|
| - if (not self.IgnoreFile(f.LocalPath()) and
|
| + if (os.path.isfile(f.AbsoluteLocalPath()) and
|
| + not self.IgnoreFile(f.LocalPath()) and
|
| self.IsRelevant(f.LocalPath()) and
|
| all(not self.IgnoreDir(d) for d in dirs(f.LocalPath())) and
|
| any(map(f.LocalPath().startswith, search_paths)))
|
|
|