]> git.ipfire.org Git - thirdparty/git.git/commit
t7528: fix failure under csh
authorKenneth Lorber <keni@his.com>
Mon, 3 Aug 2026 00:41:03 +0000 (20:41 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Aug 2026 14:42:44 +0000 (07:42 -0700)
commitd5dd17756dce04fadb5f787376aabfae4d859bb4
tree4b8438813a347f862180ed18e10aa104eafb2959
parente9019fcafe0040228b8631c30f97ae1adb61bcdc
t7528: fix failure under csh

Explicitly set sh mode for ssh-agent (ssh-agent -s) to prevent
failure when user's login shell is csh-like.  The failure is
caused by propagation of the $SHELL value from the user's original
shell despite the test and test harness explictly using sh, which
makes ssh-agent emit initialization code for the wrong shell:

> cd t
> echo $SHELL
/bin/tcsh
> ./t7528-signed-commit-ssh.sh --verbose --debug
[...]
expecting success of 7528.2 'sign commits using literal public keys with ssh-agent':
[...]
./t7528-signed-commit-ssh.sh: 1: eval: setenv: not found
./t7528-signed-commit-ssh.sh: 1: eval: setenv: not found
[...]

Signed-off-by: Kenneth Lorber <keni@his.com>
Acked-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7528-signed-commit-ssh.sh