| 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 0872b56b1b83e24c821420b391678d59bcbd1799..2667e5f07f93efaf31e9f14bb48c1683d6c09dbf 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'))):
|
|
|