(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description) op: Equal rhs: { (SQ <"merging symlinks on filesystem w/o symlink support.\n"> <"\n"> <"This tests that git merge-recursive writes merge results as plain files\n"> <"if core.symlinks is false."> ) } spids: [13] ) ] spids: [13] ) (C {(.)} {(./test-lib.sh)}) (C {(test_expect_success)} {(SQ <setup>)} { (SQ <"\n"> <"git config core.symlinks false &&\n"> <"> file &&\n"> <"git add file &&\n"> <"git commit -m initial &&\n"> <"git branch b-symlink &&\n"> <"git branch b-file &&\n"> <"l=$(printf file | git hash-object -t blob -w --stdin) &&\n"> <"echo \"120000 $l\tsymlink\" | git update-index --index-info &&\n"> <"git commit -m master &&\n"> <"git checkout b-symlink &&\n"> <"l=$(printf file-different | git hash-object -t blob -w --stdin) &&\n"> <"echo \"120000 $l\tsymlink\" | git update-index --index-info &&\n"> <"git commit -m b-symlink &&\n"> <"git checkout b-file &&\n"> <"echo plain-file > symlink &&\n"> <"git add symlink &&\n"> <"git commit -m b-file"> ) } ) (C {(test_expect_success)} {(SQ <"merge master into b-symlink, which has a different symbolic link">)} {(SQ <"\n"> <"git checkout b-symlink &&\n"> <"test_must_fail git merge master">)} ) (C {(test_expect_success)} {(SQ <"the merge result must be a file">)} {(SQ <"\n"> <"test -f symlink">)} ) (C {(test_expect_success)} {(SQ <"merge master into b-file, which has a file instead of a symbolic link">)} {(SQ <"\n"> <"git reset --hard && git checkout b-file &&\n"> <"test_must_fail git merge master">)} ) (C {(test_expect_success)} {(SQ <"the merge result must be a file">)} {(SQ <"\n"> <"test -f symlink">)} ) (C {(test_expect_success)} {(SQ <"merge b-file, which has a file instead of a symbolic link, into master">)} { (SQ <"\n"> <"git reset --hard &&\n"> <"git checkout master &&\n"> <"test_must_fail git merge b-file"> ) } ) (C {(test_expect_success)} {(SQ <"the merge result must be a file">)} {(SQ <"\n"> <"test -f symlink">)} ) (C {(test_done)}) ] )