3 test_description='merge-recursive: handle file mode'
6 test_expect_success 'mode change in one branch: keep changed version' '
9 git commit -m initial &&
10 git checkout -b a1 master &&
14 git checkout -b b1 master &&
19 git merge-recursive master -- a1 b1 &&
23 test_expect_success 'mode change in both branches: expect conflict' '
24 git reset --hard HEAD &&
25 git checkout -b a2 master &&
27 H=$(git hash-object file2) &&
31 git checkout -b b2 master &&
37 git merge-recursive master -- a2 b2
40 git ls-files -u >actual &&
42 echo "100755 $H 2 file2"
43 echo "100644 $H 3 file2"
45 test_cmp actual expect &&