Skip to content

Commit 065135f

Browse files
rscharfegitster
authored andcommitted
t6300: fix setup with GPGSSH but without GPG
In a test introduced by 26c9c03 (ref-filter: add new "signature" atom, 2023-06-04) the file named "file" is added by a setup step that requires GPG and modified by a second setup step that requires GPGSSH. Systems lacking the first prerequisite skip the initial setup step and then "git commit -a" in the second one doesn't find the modified file. Add it explicitly. Signed-off-by: René Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 26c9c03 commit 065135f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t6300-for-each-ref.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,8 @@ test_expect_success GPGSSH 'setup for signature atom using ssh' '
15841584
test_config user.signingkey "${GPGSSH_KEY_PRIMARY}" &&
15851585
echo "8" >file &&
15861586
test_tick &&
1587-
git commit -a -S -m "file: 8" &&
1587+
git add file &&
1588+
git commit -S -m "file: 8" &&
15881589
git tag eighth-signed-ssh
15891590
'
15901591

0 commit comments

Comments
 (0)