mingw: implement getppid
[git/kusma.git] / t / t2106-update-index-assume-unchanged.sh
blob99d858c6b755f9d074173b25253a0ae0184ed23d
1 #!/bin/sh
3 test_description='git update-index --assume-unchanged test.
6 . ./test-lib.sh
8 test_expect_success 'setup' \
9 ': >file &&
10 git add file &&
11 git commit -m initial &&
12 git branch other &&
13 echo upstream >file &&
14 git add file &&
15 git commit -m upstream'
17 test_expect_success 'do not switch branches with dirty file' \
18 'git reset --hard &&
19 git checkout other &&
20 echo dirt >file &&
21 git update-index --assume-unchanged file &&
22 test_must_fail git checkout master'
24 test_done