]> Kevux Git Server - rit/commit
fast-import: add 'strip-if-invalid' mode to '--signed-tags=<mode>'
authorJustin Tobler <jltobler@gmail.com>
Thu, 26 Mar 2026 19:14:12 +0000 (14:14 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Mar 2026 19:42:57 +0000 (12:42 -0700)
commit817b0428797742829b57538210ad8404b09f9cb1
treebae6093b27da92b68dce05e1235b85cf821585ce
parent4c36345e04cbef7edb94557119acba9f9a38c26f
fast-import: add 'strip-if-invalid' mode to '--signed-tags=<mode>'

With c20f112e51 (fast-import: add 'strip-if-invalid' mode to
--signed-commits=<mode>, 2025-11-17), git-fast-import(1) learned to
verify commit signatures during import and strip signatures that fail
verification. Extend the same behavior to signed tag objects by
introducing a 'strip-if-invalid' mode for the '--signed-tags' option.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-fast-import.adoc
builtin/fast-import.c
t/t9306-fast-import-signed-tags.sh