X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft2101-update-index-reupdate.sh;h=76ad7c344c0546603fb198a9ffb907d6142cbe84;hb=0c61c6de3497900616b66a65dc41b27544131ed5;hp=648184fd983512be57b46fb5903b42e4de5e4704;hpb=b805ef08e691299478b0d0c843eeab3f066c5872;p=git.git diff --git a/t/t2101-update-index-reupdate.sh b/t/t2101-update-index-reupdate.sh index 648184fd9..76ad7c344 100755 --- a/t/t2101-update-index-reupdate.sh +++ b/t/t2101-update-index-reupdate.sh @@ -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'