From fdbeec93ad1e8057b07de286fb76d1bf44797697 Mon Sep 17 00:00:00 2001 From: Stephen Caudle Date: Thu, 4 May 2017 00:14:28 -0400 Subject: [PATCH] Stop at first root directory --- cpplint/cpplint.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cpplint/cpplint.py b/cpplint/cpplint.py index 949c510..f46127f 100755 --- a/cpplint/cpplint.py +++ b/cpplint/cpplint.py @@ -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