Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2020-11-18 17:49:06 +0300
committerJunio C Hamano <gitster@pobox.com>2020-11-18 21:27:38 +0300
commitbce46b1adc57945c26dea91829dfa7315f9292e7 (patch)
treea351596b154d1cab7e05d7ffcbc91f5e32158d39 /t/t2106-update-index-assume-unchanged.sh
parenta900999d7cd74f878686933a6341e3852726165d (diff)
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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2106-update-index-assume-unchanged.sh')
-rwxr-xr-xt/t2106-update-index-assume-unchanged.sh2
1 files changed, 1 insertions, 1 deletions
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