Skip to content

Commit 2fad33f

Browse files
authored
Merge pull request #88 from ianrobrien/hide-signatures-in-git-log
Hide signature information when getting git log
2 parents 708128b + 36e53e2 commit 2fad33f

File tree

1 file changed

+2
-2
lines changed
  • mkdocs_git_revision_date_localized_plugin

1 file changed

+2
-2
lines changed

mkdocs_git_revision_date_localized_plugin/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def get_git_commit_timestamp(
112112
if is_first_commit:
113113
# diff_filter="A" will select the commit that created the file
114114
commit_timestamp = git.log(
115-
realpath, date="unix", format="%at", diff_filter="A"
115+
realpath, date="unix", format="%at", diff_filter="A", no_show_signature=True
116116
)
117117
# A file can be created multiple times, through a file renamed.
118118
# Commits are ordered with most recent commit first
@@ -122,7 +122,7 @@ def get_git_commit_timestamp(
122122
else:
123123
# Latest commit touching a specific file
124124
commit_timestamp = git.log(
125-
realpath, date="unix", format="%at", n=1
125+
realpath, date="unix", format="%at", n=1, no_show_signature=True
126126
)
127127
except (InvalidGitRepositoryError, NoSuchPathError) as err:
128128
if self.config.get('fallback_to_build_date'):

0 commit comments

Comments
 (0)