t2106: ensure that the checkout fails for the expected reason
authorJohannes Schindelin <redacted>
Wed, 18 Nov 2020 14:49:07 +0000 (14:49 +0000)
committerJunio C Hamano <redacted>
Wed, 18 Nov 2020 18:27:39 +0000 (10:27 -0800)
commitb6e2a4f07c238e179e4d358e84a7f9e3a5c07005
tree89d837008cd5581dd284eddefae104918d3db662
parentbce46b1adc57945c26dea91829dfa7315f9292e7
t2106: ensure that the checkout fails for the expected reason

During the transition of the test suite to a new default branch name, it
was noticed that this test case succeeded for the wrong reason when the
default branch name was overridden.

While we fixed that in the previous commit, let's make sure that we look
for a tell-tale in the error message that the `git checkout` failed for
the reason we wanted it to fail.

Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t2106-update-index-assume-unchanged.sh
git clone https://git.99rst.org/PROJECT