Skip to content

Commit fd17982

Browse files
authored
Merge pull request diffblue#193 from diffblue/feature/lint-cbmc-subtree
Update linter to cope with CBMC subtree
2 parents abb12fd + 1c7cd35 commit fd17982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cbmc/scripts/cpplint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ def RepositoryName(self):
11521152
if (os.path.exists(os.path.join(root_dir, ".git")) or
11531153
os.path.exists(os.path.join(root_dir, ".hg")) or
11541154
os.path.exists(os.path.join(root_dir, ".svn"))):
1155-
prefix = os.path.commonprefix([root_dir, project_dir])
1155+
prefix = os.path.commonprefix([root_dir + "/cbmc", project_dir])
11561156
return fullname[len(prefix) + 1:]
11571157

11581158
# Don't know what to do; header guard warnings may be wrong...

0 commit comments

Comments
 (0)