aboutsummaryrefslogtreecommitdiff
path: root/t/t6020-merge-df.sh
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2010-09-20 02:28:42 -0600
committerJunio C Hamano <gitster@pobox.com>2010-09-29 17:32:37 -0700
commitd09c0a3935c6f28b1e7710f3f08a6ff5dec50f73 (patch)
tree61e88e48061b4ab2e0f53c33637a2e8683411e70 /t/t6020-merge-df.sh
parent707983484b7dcdd5fe3e09b30d0fdf6dac89c940 (diff)
downloadgit-d09c0a3935c6f28b1e7710f3f08a6ff5dec50f73.tar.gz
git-d09c0a3935c6f28b1e7710f3f08a6ff5dec50f73.tar.xz
t6020: Modernize style a bit
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6020-merge-df.sh')
-rwxr-xr-xt/t6020-merge-df.sh35
1 files changed, 20 insertions, 15 deletions
diff --git a/t/t6020-merge-df.sh b/t/t6020-merge-df.sh
index 490d39711..8662207d2 100755
--- a/t/t6020-merge-df.sh
+++ b/t/t6020-merge-df.sh
@@ -6,21 +6,26 @@
test_description='Test merge with directory/file conflicts'
. ./test-lib.sh
-test_expect_success 'prepare repository' \
-'echo "Hello" > init &&
-git add init &&
-git commit -m "Initial commit" &&
-git branch B &&
-mkdir dir &&
-echo "foo" > dir/foo &&
-git add dir/foo &&
-git commit -m "File: dir/foo" &&
-git checkout B &&
-echo "file dir" > dir &&
-git add dir &&
-git commit -m "File: dir"'
-
-test_expect_code 1 'Merge with d/f conflicts' 'git merge "merge msg" B master'
+test_expect_success 'prepare repository' '
+ echo Hello >init &&
+ git add init &&
+ git commit -m initial &&
+
+ git branch B &&
+ mkdir dir &&
+ echo foo >dir/foo &&
+ git add dir/foo &&
+ git commit -m "File: dir/foo" &&
+
+ git checkout B &&
+ echo file dir >dir &&
+ git add dir &&
+ git commit -m "File: dir"
+'
+
+test_expect_success 'Merge with d/f conflicts' '
+ test_must_fail git merge master
+'
test_expect_success 'F/D conflict' '
git reset --hard &&