| Index: third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py
|
| index bc274c0eba49af609742a9998acefe979170d07a..9a0ec1c367a78d98332037740b5cf016653979fc 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py
|
| @@ -590,21 +590,7 @@ class FileInfo:
|
| if os.path.exists(fullname):
|
| project_dir = os.path.dirname(fullname)
|
|
|
| - if os.path.exists(os.path.join(project_dir, '.svn')):
|
| - # If there's a .svn file in the current directory, we
|
| - # recursively look up the directory tree for the top
|
| - # of the SVN checkout
|
| - root_dir = project_dir
|
| - one_up_dir = os.path.dirname(root_dir)
|
| - while os.path.exists(os.path.join(one_up_dir, '.svn')):
|
| - root_dir = os.path.dirname(root_dir)
|
| - one_up_dir = os.path.dirname(one_up_dir)
|
| -
|
| - prefix = os.path.commonprefix([root_dir, project_dir])
|
| - return fullname[len(prefix) + 1:]
|
| -
|
| - # Not SVN? Try to find a git top level directory by
|
| - # searching up from the current path.
|
| + # Try to find a git top level directory by searching up from the current path.
|
| root_dir = os.path.dirname(fullname)
|
| while (root_dir != os.path.dirname(root_dir)
|
| and not os.path.exists(os.path.join(root_dir, '.git'))):
|
|
|