Skip to content

Commit

Permalink
Merge pull request #3785 from vodorok/git_ignore
Browse files Browse the repository at this point in the history
[fix] Ignore files of .gitignore
  • Loading branch information
bruntib authored Nov 8, 2022
2 parents cadc7da + 26ea1c6 commit 50f1b24
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/client/codechecker_client/blame_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ def __get_blame_info(file_path: str):
""" Get blame info for the given file. """
try:
repo = Repo(file_path, search_parent_directories=True)
if repo.ignored(file_path):
LOG.debug(f"File {file_path} is an ignored file")
return
except InvalidGitRepositoryError:
return

Expand Down

0 comments on commit 50f1b24

Please sign in to comment.