X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft7001-mv.sh;h=65a35d94a001b555ce9e4d6c528d588339a5300b;hb=3a3a29c1da97b36dda2761c2e6b61c1a82e20a54;hp=10b8f8c44befdb4eb00b3959f8b29cbebb7a22e1;hpb=00d3278c8534a8244ae3447189401111e017fd5d;p=git.git diff --git a/t/t7001-mv.sh b/t/t7001-mv.sh index 10b8f8c44..65a35d94a 100755 --- a/t/t7001-mv.sh +++ b/t/t7001-mv.sh @@ -189,6 +189,18 @@ test_expect_success 'absolute pathname outside should fail' '( )' +test_expect_success 'git mv to move multiple sources into a directory' ' + rm -fr .git && git init && + mkdir dir other && + >dir/a.txt && + >dir/b.txt && + git add dir/?.txt && + git mv dir/a.txt dir/b.txt other && + git ls-files >actual && + { echo other/a.txt; echo other/b.txt; } >expect && + test_cmp expect actual +' + test_expect_success 'git mv should not change sha1 of moved cache entry' ' rm -fr .git &&