]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t6300: fix setup with GPGSSH but without GPG
authorRené Scharfe <l.s.r@web.de>
Sun, 16 Jul 2023 08:17:35 +0000 (10:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Jul 2023 16:15:18 +0000 (09:15 -0700)
In a test introduced by 26c9c03f0a (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 <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6300-for-each-ref.sh

index 6e6ec852b5d0e86a71a4fa1b4680661988bb8b3e..1180c3254ce84afbd5672a210f4f7d8943d261ee 100755 (executable)
@@ -1584,7 +1584,8 @@ test_expect_success GPGSSH 'setup for signature atom using ssh' '
        test_config user.signingkey "${GPGSSH_KEY_PRIMARY}" &&
        echo "8" >file &&
        test_tick &&
-       git commit -a -S -m "file: 8" &&
+       git add file &&
+       git commit -S -m "file: 8" &&
        git tag eighth-signed-ssh
 '