From 2a017940b4aff684a3cede8d8e8ae6719e255792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Ferrand?= Date: Fri, 14 Oct 2022 10:49:37 +0200 Subject: [PATCH] Enforce '--no-show-signature' on git-log timestamp retrieval * The '--no-show-signature' flag ensures that no 'Signature' message could get in the way of the 'git-log timestamp' parsing logic --- dunamai/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dunamai/__init__.py b/dunamai/__init__.py index d16e9e7..a09c56a 100644 --- a/dunamai/__init__.py +++ b/dunamai/__init__.py @@ -815,7 +815,7 @@ def from_git( return cls("0.0.0", distance=0, dirty=True, branch=branch) commit = msg - code, msg = _run_cmd('git log -n 1 --pretty=format:"%cI"') + code, msg = _run_cmd('git log --no-show-signature -n 1 --pretty=format:"%cI"') timestamp = _parse_git_timestamp_iso_strict(msg) code, msg = _run_cmd("git describe --always --dirty")