Skip to content

Commit

Permalink
fix: #1281 pre-commit fails with log.showsignature=True
Browse files Browse the repository at this point in the history
Fixes #1281 by skipping the
signature in the log output
  • Loading branch information
jlec authored and mwouts committed Dec 15, 2024
1 parent 5775191 commit 1c812f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/jupytext/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,9 @@ def git_timestamp(path):

# Return the commit timestamp
try:
git_ts_str = system("git", "log", "-1", "--pretty=%ct", path).strip()
git_ts_str = system(
"git", "log", "-1", "--pretty=%ct", "--no-show-signature", path
).strip()
except SystemExit as err:
if err.code == 128:
# git not initialized
Expand Down

0 comments on commit 1c812f5

Please sign in to comment.