ssh signing: make sign/amend test more resilient
commit3b4b5a793a36d1e92114ff929eb7d15d55d45a96
authorFabian Stelzer <fs@gigacodes.de>
Fri, 19 Nov 2021 15:07:07 +0000 (19 16:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Nov 2021 17:05:27 +0000 (19 09:05 -0800)
treef445a75b17051e6b697c1bed0bb24dd74636af0a
parent350a2518c8ea4f42934b4d6f3466d2815efff97f
ssh signing: make sign/amend test more resilient

The test `amending already signed commit` is using git checkout to
select a specific commit to amend. In case an earlier test fails and
leaves behind a dirty index/worktree this test would fail as well.
Using `checkout -f` will avoid interference by most other tests.

Signed-off-by: Fabian Stelzer <fs@gigacodes.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7510-signed-commit.sh
t/t7528-signed-commit-ssh.sh