git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/1] gpg(docs): use correct --verify syntax

From
Robert Morgan via GitGitGadget <gitgitgadget@gmail.com>
Date
Jul 12, 2019, 15:33 UTC
Message-ID
<e2daf21f1f2574a79f83d4e66591f67b1c937efe.1562945635.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.285.git.gitgitgadget@gmail.com>
From: Robert Morgan <robert.thomas.morgan@gmail.com>

The gpg --verify usage example within the 'gpg.program' variable reference provides an incorrect example of the gpg --verify command arguments.

The command argument order, when providing both a detached signature and data, should be signature first and data second: https://gnupg.org/documentation/manuals/gnupg/Operational-GPG-Commands.html

Signed-off-by: Robert Morgan <robert.thomas.morgan@gmail.com>
---
 Documentation/config/gpg.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/config/gpg.txt b/Documentation/config/gpg.txt
index f999f8ea49..cce2c89245 100644
--- a/Documentation/config/gpg.txt
+++ b/Documentation/config/gpg.txt
@@ -2,7 +2,7 @@ gpg.program::
 	Use this custom program instead of "`gpg`" found on `$PATH` when
 	making or verifying a PGP signature. The program must support the
 	same command-line interface as GPG, namely, to verify a detached
-	signature, "`gpg --verify $file - <$signature`" is run, and the
+	signature, "`gpg --verify $signature - <$file`" is run, and the
 	program is expected to signal a good signature by exiting with
 	code 0, and to generate an ASCII-armored detached signature, the
 	standard input of "`gpg -bsau $key`" is fed with the contents to be
-- 
gitgitgadget
Previous: Robert Morgan via GitGitGadgetNext: Junio C Hamano
Message 2 of 4 in “Update gpg.txt to correct gpg --verify syntax”
  1. 0/1 Update gpg.txt to correct gpg --verify syntaxRobert Morgan via GitGitGadget, Jul 12, 2019
  2. 1/1 gpg(docs): use correct --verify syntaxRobert Morgan via GitGitGadget, Jul 12, 2019
  3. Junio C HamanoJul 12, 2019
  4. Robert MorganJul 12, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.