X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft9350-fast-export.sh;h=8c8e679468f4b191f93ca68a973d4d58fa1b72d2;hb=7bdaf0bd1cffde9b3d14762f67f22991e8e17ef6;hp=d831404fba8d982f4600d6ed310c3acb3b893ac8;hpb=aca35505db3706c87d391dd213e856f73edfd42c;p=git.git diff --git a/t/t9350-fast-export.sh b/t/t9350-fast-export.sh index d831404fb..8c8e67946 100755 --- a/t/t9350-fast-export.sh +++ b/t/t9350-fast-export.sh @@ -390,4 +390,28 @@ test_expect_success 'tree_tag-obj' 'git fast-export tree_tag-obj' test_expect_success 'tag-obj_tag' 'git fast-export tag-obj_tag' test_expect_success 'tag-obj_tag-obj' 'git fast-export tag-obj_tag-obj' +test_expect_success SYMLINKS 'directory becomes symlink' ' + git init dirtosymlink && + git init result && + ( + cd dirtosymlink && + mkdir foo && + mkdir bar && + echo hello > foo/world && + echo hello > bar/world && + git add foo/world bar/world && + git commit -q -mone && + git rm -r foo && + ln -s bar foo && + git add foo && + git commit -q -mtwo + ) && + ( + cd dirtosymlink && + git fast-export master -- foo | + (cd ../result && git fast-import --quiet) + ) && + (cd result && git show master:foo) +' + test_done