Skip to content

Commit

Permalink
fix: add -c log.showsignature=false to all git log commands
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Decat <[email protected]>
  • Loading branch information
pdecat committed Feb 1, 2024
1 parent 8a16c30 commit 946a037
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions dunamai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ def from_git_tag_topo_order(
tag_branch: str, git_version: List[int], path: Optional[Path]
) -> Mapping[str, int]:
cmd = (
"git log --simplify-by-decoration --topo-order --decorate=full"
' {} "--format=%H%d"'.format(tag_branch)
"git -c log.showsignature=false log --simplify-by-decoration --topo-order"
' --decorate=full {} "--format=%H%d"'.format(tag_branch)
)
if git_version >= [2, 16]:
cmd += " --decorate-refs=refs/tags/"
Expand Down Expand Up @@ -1089,7 +1089,9 @@ def from_git(
branch = msg

code, msg = _run_cmd(
'git log -n 1 --format="format:{}"'.format("%H" if full_commit else "%h"),
'git -c log.showsignature=false log -n 1 --format="format:{}"'.format(
"%H" if full_commit else "%h"
),
path,
codes=[0, 128],
)
Expand All @@ -1101,7 +1103,9 @@ def from_git(

timestamp = None
if git_version < [2, 2]:
code, msg = _run_cmd('git log -n 1 --pretty=format:"%ci"', path)
code, msg = _run_cmd(
'git -c log.showsignature=false log -n 1 --pretty=format:"%ci"', path
)
timestamp = _parse_git_timestamp_iso(msg)
else:
code, msg = _run_cmd(
Expand Down

0 comments on commit 946a037

Please sign in to comment.