Skip to content

Commit

Permalink
Merge pull request #4190 from vodorok/blame_symlink_fix_4185
Browse files Browse the repository at this point in the history
Fix impossible blame info collection
  • Loading branch information
Szelethus authored Mar 12, 2024
2 parents fa1d14f + e0778b2 commit 945dfb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/client/codechecker_client/blame_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import zipfile

from git import Repo
from git.exc import InvalidGitRepositoryError
from git.exc import InvalidGitRepositoryError, GitCommandError
from typing import Dict, Iterable, Optional

from codechecker_common.logger import get_logger
Expand Down Expand Up @@ -45,6 +45,9 @@ def __get_blame_info(file_path: str):
return
except InvalidGitRepositoryError:
return
except GitCommandError as ex:
LOG.debug(f"Failed to get blame information for {file_path}: {ex}")
return

tracking_branch = __get_tracking_branch(repo)

Expand Down

0 comments on commit 945dfb8

Please sign in to comment.