From: Johannes Schindelin Date: Wed, 18 Nov 2020 14:49:06 +0000 (+0000) Subject: t2106: make test independent of the current main branch name X-Git-Tag: v2.30.0-rc0~51^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bce46b1adc57945c26dea91829dfa7315f9292e7;p=thirdparty%2Fgit.git t2106: make test independent of the current main branch name We do have this wonderful shortcut `git checkout -` to go back to the previous branch, thanks to the reflog. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/t/t2106-update-index-assume-unchanged.sh b/t/t2106-update-index-assume-unchanged.sh index ff0947f388..3396f23363 100755 --- a/t/t2106-update-index-assume-unchanged.sh +++ b/t/t2106-update-index-assume-unchanged.sh @@ -20,7 +20,7 @@ test_expect_success 'do not switch branches with dirty file' ' git checkout other && echo dirt >file && git update-index --assume-unchanged file && - test_must_fail git checkout master + test_must_fail git checkout - ' test_done