mirror of
https://github.com/git-for-windows/git.git
synced 2026-07-10 10:01:13 -05:00
Merge pull request #1468 from atetubou/fscache_checkout_flush
checkout.c: enable fscache for checkout again Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -32,6 +32,42 @@ fill () {
|
||||
}
|
||||
|
||||
|
||||
test_expect_success MINGW 'fscache flush cache' '
|
||||
|
||||
git init fscache-test &&
|
||||
cd fscache-test &&
|
||||
git config core.fscache 1 &&
|
||||
echo A > test.txt &&
|
||||
git add test.txt &&
|
||||
git commit -m A &&
|
||||
echo B >> test.txt &&
|
||||
git checkout . &&
|
||||
test -z "$(git status -s)" &&
|
||||
echo A > expect.txt &&
|
||||
test_cmp expect.txt test.txt &&
|
||||
cd .. &&
|
||||
rm -rf fscache-test
|
||||
'
|
||||
|
||||
test_expect_success MINGW 'fscache flush cache dir' '
|
||||
|
||||
git init fscache-test &&
|
||||
cd fscache-test &&
|
||||
git config core.fscache 1 &&
|
||||
echo A > test.txt &&
|
||||
git add test.txt &&
|
||||
git commit -m A &&
|
||||
rm test.txt &&
|
||||
mkdir test.txt &&
|
||||
touch test.txt/test.txt &&
|
||||
git checkout . &&
|
||||
test -z "$(git status -s)" &&
|
||||
echo A > expect.txt &&
|
||||
test_cmp expect.txt test.txt &&
|
||||
cd .. &&
|
||||
rm -rf fscache-test
|
||||
'
|
||||
|
||||
test_expect_success setup '
|
||||
|
||||
fill x y z > same &&
|
||||
|
||||
Reference in New Issue
Block a user