]> git.ipfire.org Git - thirdparty/git.git/commit
t/lib-gpg: add prepare_gnupghome() to create GNUPGHOME dir
authorTodd Zullinger <tmz@pobox.com>
Wed, 3 Jul 2024 15:37:31 +0000 (11:37 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Oct 2025 00:58:35 +0000 (17:58 -0700)
commita35952b493f24941ad47233ac01ac9fea305d07f
tree96f515b66fd59395ea14ac2e8f3272de5a213dc0
parent790a17fb19d6eadd16c52e5d284a5c6921744766
t/lib-gpg: add prepare_gnupghome() to create GNUPGHOME dir

We create the $GNUPGHOME directory in both the GPG and GPGSSH prereqs.
Replace the redundancy with a function.

Use `mkdir -p` to ensure we do not fail if a test includes more than one
of these prereqs.

Signed-off-by: Todd Zullinger <tmz@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-gpg.sh