X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft7001-mv.sh;h=65a35d94a001b555ce9e4d6c528d588339a5300b;hb=9d488eb40e253c82dd09811d5eda20f5f8e480c9;hp=10b8f8c44befdb4eb00b3959f8b29cbebb7a22e1;hpb=a0db3e5878fd5fa3f54bcf7042ad3d0cb30e07f2;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 &&