mirror of
https://github.com/google/styleguide.git
synced 2024-03-22 13:11:43 +08:00
Stop at first root directory
This commit is contained in:
parent
d012c72624
commit
fdbeec93ad
1
cpplint/cpplint.py
vendored
1
cpplint/cpplint.py
vendored
|
@ -1116,6 +1116,7 @@ class FileInfo(object):
|
|||
os.path.exists(os.path.join(current_dir, ".hg")) or
|
||||
os.path.exists(os.path.join(current_dir, ".svn"))):
|
||||
root_dir = current_dir
|
||||
break
|
||||
current_dir = os.path.dirname(current_dir)
|
||||
|
||||
if (os.path.exists(os.path.join(root_dir, ".git")) or
|
||||
|
|
Loading…
Reference in New Issue
Block a user