Skip to content

Commit bce46b1

Browse files
dschogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a900999 commit bce46b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t2106-update-index-assume-unchanged.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test_expect_success 'do not switch branches with dirty file' '
2020
git checkout other &&
2121
echo dirt >file &&
2222
git update-index --assume-unchanged file &&
23-
test_must_fail git checkout master
23+
test_must_fail git checkout -
2424
'
2525

2626
test_done

0 commit comments

Comments
 (0)