]> git.scottworley.com Git - pinch/commitdiff
Support "log.showSignature = true" 1.5
authorScott Worley <scottworley@scottworley.com>
Fri, 12 Jun 2020 09:16:39 +0000 (02:16 -0700)
committerScott Worley <scottworley@scottworley.com>
Fri, 12 Jun 2020 09:16:39 +0000 (02:16 -0700)
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.

pinch.py

index 5f250150660351cc59da24bb1578790dbf1290b2..4c8a51fe45472d3e8c5fba412da7c9df6ae46286 100644 (file)
--- 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'')