3 test_description
='git update-index --assume-unchanged test.
6 TEST_PASSES_SANITIZE_LEAK
=true
9 test_expect_success
'setup' '
12 git commit -m initial &&
14 echo upstream >file &&
16 git commit -m upstream
19 test_expect_success
'do not switch branches with dirty file' '
23 git update-index --assume-unchanged file &&
24 test_must_fail git checkout - 2>err &&
25 test_grep overwritten err