gentoo-ebuilds/dev-vcs/git/files/git-2.51.1-openssh-10.1-tests.patch
Sam James f7cfcf7662
dev-vcs/git: fix tests w/ net-misc/openssh-10.1
The -T arg is new so fall back to old where it fails, which should be fine
as older openssh had different behaviour.

Closes: https://bugs.gentoo.org/964608
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-18 17:46:31 +01:00

14 lines
665 B
Diff

https://bugs.gentoo.org/964608
(Tangentially: https://bugs.debian.org/1118288)
https://lore.kernel.org/git/4e2952e512afc780b621d2c153b3e6e4eb7ed89a.camel@xry111.site/
--- a/t/t7528-signed-commit-ssh.sh
+++ b/t/t7528-signed-commit-ssh.sh
@@ -82,7 +82,7 @@ test_expect_success GPGSSH 'create signed commits' '
test_expect_success GPGSSH 'sign commits using literal public keys with ssh-agent' '
test_when_finished "test_unconfig commit.gpgsign" &&
test_config gpg.format ssh &&
- eval $(ssh-agent) &&
+ eval $(ssh-agent -T || ssh-agent) &&
test_when_finished "kill ${SSH_AGENT_PID}" &&
test_when_finished "test_unconfig user.signingkey" &&
mkdir tmpdir &&