3 # Copyright (c) 2005 Fredrik Kuivinen
6 test_description='Test merge with directory/file conflicts'
9 test_expect_success 'prepare repository' \
10 'echo "Hello" > init &&
12 git commit -m "Initial commit" &&
15 echo "foo" > dir/foo &&
17 git commit -m "File: dir/foo" &&
19 echo "file dir" > dir &&
21 git commit -m "File: dir"'
23 test_expect_code 1 'Merge with d/f conflicts' 'git merge "merge msg" B master'
25 test_expect_success 'F/D conflict' '
27 git checkout master &&
31 echo FILE >before/one &&
34 git commit -m first &&
37 git mv before after &&
40 git checkout -b para HEAD^ &&
41 echo COMPLETELY ANOTHER FILE >another &&