Skip to content

Commit

Permalink
Merge pull request google#290 from google/revert-289-gh-pages
Browse files Browse the repository at this point in the history
Revert "cpplint: Fix --root for non-subdirectories"
  • Loading branch information
markmentovai authored Nov 8, 2017
2 parents 81ceafc + d420095 commit 66f0d44
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cpplint/cpplint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1777,8 +1777,6 @@ def GetHeaderGuardCPPVariable(filename):
fileinfo = FileInfo(filename)
file_path_from_root = fileinfo.RepositoryName()
if _root:
file_path_from_root = fileinfo.FullName()

suffix = os.sep
# On Windows using directory separator will leave us with
# "bogus escape error" unless we properly escape regex.
Expand Down

0 comments on commit 66f0d44

Please sign in to comment.