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_success
'Merge with d/f conflicts' '
24 test_expect_code 1 git merge "merge msg" B master
27 test_expect_success
'F/D conflict' '
29 git checkout master &&
33 echo FILE >before/one &&
36 git commit -m first &&
39 git mv before after &&
42 git checkout -b para HEAD^ &&
43 echo COMPLETELY ANOTHER FILE >another &&