diff options
| author | John Turner <jturner.usa+gentoo@gmail.com> | 2025-10-26 00:32:00 -0400 |
|---|---|---|
| committer | John Turner <jturner.usa+gentoo@gmail.com> | 2025-10-26 00:32:00 -0400 |
| commit | cdaeb4579fc35442182b476a049daffd44ceea3c (patch) | |
| tree | f3b0e5dba3e82a1ddc7be64f73657bb9b7f9c488 | |
| parent | aa8d794639a4a49df7fabda148286da1f18a0b7a (diff) | |
| download | ebuilds-cdaeb4579fc35442182b476a049daffd44ceea3c.tar.gz | |
verify-sig.eclass: pass config opts to git via cli rather than global config file
| -rw-r--r-- | eclass/verify-sig.eclass | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass index 695918c..6ce0b0d 100644 --- a/eclass/verify-sig.eclass +++ b/eclass/verify-sig.eclass @@ -494,17 +494,20 @@ verify-sig_verify_git_repo() { esac done - git config --global 'gpg.ssh.allowedSignersFile' ${T}/allowed_signers || die - # gemato *requires* at least one pgp key is passed to it, so if we don't find a pgp key # we don't use gemato at all. ebegin "verifying ${git_dir}/${commit}" case ${found_pgp_key} in yes) - gemato gpg-wrap ${args[@]} -- git --git-dir ${git_dir} verify-commit ${commit} + gemato gpg-wrap ${args[@]} -- git \ + -c "gpg.ssh.allowedSignersFile=${T}/allowed_signers" \ + --git-dir ${git_dir} \ + verify-commit ${commit} ;; *) - git --git-dir ${git_dir} verify-commit ${commit} + git -c "gpg.ssh.allowedSignersFile=${T}/allowed_signers" \ + --git-dir ${git_dir} \ + verify-commit ${commit} ;; esac eend $? || die $? |
