1#!/bin/sh
2#
3# Copyright (c) 2005 Fredrik Kuivinen
4#
56
test_description='Test merge with directory/file conflicts'
7. ./test-lib.sh
89
test_expect_success 'prepare repository' \
10'echo "Hello" > init &&
11git add init &&
12git commit -m "Initial commit" &&
13git branch B &&
14mkdir dir &&
15echo "foo" > dir/foo &&
16git add dir/foo &&
17git commit -m "File: dir/foo" &&
18git checkout B &&
19echo "file dir" > dir &&
20git add dir &&
21git commit -m "File: dir"'
2223
test_expect_code 1 'Merge with d/f conflicts' 'git merge "merge msg" B master'
2425
test_done