]> git.ipfire.org Git - thirdparty/git.git/commit
t7500: make each piece more independent
authorJunio C Hamano <gitster@pobox.com>
Sun, 28 Sep 2025 21:29:14 +0000 (17:29 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 28 Sep 2025 22:40:30 +0000 (15:40 -0700)
commit666b29b58f7c95007fe0384737c1ff506b138136
tree4488627b94f0f0e31b36741e5f9e3a6940564e10
parentc44beea485f0f2feaf460e2ac87fdd5608d63cf0
t7500: make each piece more independent

These tests prepare the working tree & index state to have something
to be committed, and try a sequence of "test_must_fail git commit".
If an earlier one did not fail by a bug, a later one will fail for
a wrong reason (namely, "nothing to commit").

Give them "--allow-empty" to make sure that they would work even
when there is nothing to commit by accident.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7500-commit-template-squash-signoff.sh