From: Scott Worley Date: Fri, 12 Jun 2020 09:16:39 +0000 (-0700) Subject: Support "log.showSignature = true" X-Git-Tag: 1.5 X-Git-Url: http://git.scottworley.com/pinch/commitdiff_plain/88af5903f7d0c6490a236167b6e07d831fc67a62?hp=420bd8c9c431223f9299477dc885d2c9d9f077c5 Support "log.showSignature = true" Don't let "log.showSignature = true" in global git config cause signature check output to appear in the release name. Bad excuses for not including a test: * Would have to add GPG as a dependency. * Generating a GPG key during the test would be slow. * Making a local "global" git config in the test would be troublesome. --- diff --git a/pinch.py b/pinch.py index 5f25015..4c8a51f 100644 --- a/pinch.py +++ b/pinch.py @@ -482,6 +482,7 @@ def git_revision_name(v: Verification, channel: Channel) -> str: '-n1', '--format=%ct-%h', '--abbrev=11', + '--no-show-signature', channel.git_revision], stdout=subprocess.PIPE) v.result(process.returncode == 0 and process.stdout != b'')