X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=t%2Ft2101-update-index-reupdate.sh;h=77aed8d80067798d9cedb20963ad57a3f0f8ab15;hb=8701ea0f627dcba4bb75570f87df9c93985d397a;hp=5c505c6ac8c14956626a1523edfde1728b4a08d8;hpb=83e77a25dc194933c0fb7908ab6d9fb84a5045e2;p=git.git diff --git a/t/t2101-update-index-reupdate.sh b/t/t2101-update-index-reupdate.sh index 5c505c6a..77aed8d8 100755 --- a/t/t2101-update-index-reupdate.sh +++ b/t/t2101-update-index-reupdate.sh @@ -69,5 +69,14 @@ test_expect_success 'update-index --update from subdir' \ 100644 0f1ae1422c2bf43f117d3dbd715c988a9ed2103f 0 file2 EOF' -test_done +test_expect_success 'update-index --update with pathspec' \ + 'echo very happy >file2 && + cat file2 >dir1/file3 && + git-update-index --again dir1/ && + git-ls-files -s >current && + cmp current - <<\EOF +100644 594fb5bb1759d90998e2bf2a38261ae8e243c760 0 dir1/file3 +100644 0f1ae1422c2bf43f117d3dbd715c988a9ed2103f 0 file2 +EOF' +test_done