X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft2101-update-index-reupdate.sh;h=c8bce8c2e4314aaf466019438818293102c12c9c;hb=0f360763c02d1230614e23f94fb298dab0162aa0;hp=648184fd983512be57b46fb5903b42e4de5e4704;hpb=03f94ae9f909952ed5a78917ab319a312889354b;p=git.git diff --git a/t/t2101-update-index-reupdate.sh b/t/t2101-update-index-reupdate.sh index 648184fd9..c8bce8c2e 100755 --- a/t/t2101-update-index-reupdate.sh +++ b/t/t2101-update-index-reupdate.sh @@ -51,7 +51,7 @@ test_expect_success 'update-index again' \ echo hello world >dir1/file3 && echo goodbye people >file2 && git update-index --add file2 dir1/file3 && - echo hello everybody >file2 + echo hello everybody >file2 && echo happy >dir1/file3 && git update-index --again && git ls-files -s >current && @@ -63,10 +63,10 @@ cat > expected <<\EOF EOF test_expect_success 'update-index --update from subdir' \ 'echo not so happy >file2 && - cd dir1 && + (cd dir1 && cat ../file2 >file3 && - git update-index --again && - cd .. && + git update-index --again + ) && git ls-files -s >current && cmp current expected'