]> git.ipfire.org Git - thirdparty/git.git/commitdiff
request-pull: filter out SSH/X.509 tag signatures
authorGwyneth Morgan <gwymor@tilde.club>
Wed, 25 Jan 2023 23:47:27 +0000 (23:47 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Jan 2023 23:54:41 +0000 (15:54 -0800)
git request-pull filters PGP signatures out of the tag message, but not
SSH or X.509 signatures.

Signed-off-by: Gwyneth Morgan <gwymor@tilde.club>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-request-pull.sh

index 2d0e44656cc6ca4cc0cd8b579a1ebd8798e90b5f..01640a044bb10f4167338fca957c43a240e1b6c0 100755 (executable)
@@ -153,7 +153,7 @@ for you to fetch changes up to %H:
 if test $(git cat-file -t "$head") = tag
 then
        git cat-file tag "$head" |
-       sed -n -e '1,/^$/d' -e '/^-----BEGIN PGP /q' -e p
+       sed -n -e '1,/^$/d' -e '/^-----BEGIN \(PGP\|SSH\|SIGNED\) /q' -e p
        echo
        echo "----------------------------------------------------------------"
 fi &&