3 test_description='git update-index --assume-unchanged test.
8 test_expect_success 'setup' '
11 git commit -m initial &&
13 echo upstream >file &&
15 git commit -m upstream
18 test_expect_success 'do not switch branches with dirty file' '
22 git update-index --assume-unchanged file &&
23 test_must_fail git checkout - 2>err &&
24 test_i18ngrep overwritten err