@@ -150,7 +150,7 @@ test_expect_success 'directory rename + content conflict' '
150
150
cd dir-rename-and-content &&
151
151
test_write_lines 1 2 3 4 5 >foo &&
152
152
mkdir olddir &&
153
- for i in a b c; do echo $i >olddir/$i; done
153
+ for i in a b c; do echo $i >olddir/$i || exit 1 ; done &&
154
154
git add foo olddir &&
155
155
git commit -m "original" &&
156
156
@@ -176,7 +176,7 @@ test_expect_success 'directory rename + content conflict' '
176
176
177
177
test_expect_code 1 \
178
178
git merge-tree -z A^0 B^0 >out &&
179
- printf "\\n" >>out &&
179
+ echo >>out &&
180
180
anonymize_hash out >actual &&
181
181
q_to_tab <<-\EOF | lf_to_nul >expect &&
182
182
HASH
@@ -230,7 +230,7 @@ test_expect_success 'rename/delete handling' '
230
230
231
231
test_expect_code 1 \
232
232
git merge-tree -z A^0 B^0 >out &&
233
- printf "\\n" >>out &&
233
+ echo >>out &&
234
234
anonymize_hash out >actual &&
235
235
q_to_tab <<-\EOF | lf_to_nul >expect &&
236
236
HASH
@@ -284,7 +284,7 @@ test_expect_success 'rename/add handling' '
284
284
285
285
test_expect_code 1 \
286
286
git merge-tree -z A^0 B^0 >out &&
287
- printf "\\n" >>out &&
287
+ echo >>out &&
288
288
289
289
#
290
290
# First, check that the bar that appears at stage 3 does not
@@ -351,7 +351,7 @@ test_expect_success SYMLINKS 'rename/add, where add is a mode conflict' '
351
351
352
352
test_expect_code 1 \
353
353
git merge-tree -z A^0 B^0 >out &&
354
- printf "\\n" >>out &&
354
+ echo >>out &&
355
355
356
356
#
357
357
# First, check that the bar that appears at stage 3 does not
@@ -417,7 +417,7 @@ test_expect_success 'rename/rename + content conflict' '
417
417
418
418
test_expect_code 1 \
419
419
git merge-tree -z A^0 B^0 >out &&
420
- printf "\\n" >>out &&
420
+ echo >>out &&
421
421
anonymize_hash out >actual &&
422
422
q_to_tab <<-\EOF | lf_to_nul >expect &&
423
423
HASH
@@ -471,7 +471,7 @@ test_expect_success 'rename/add/delete conflict' '
471
471
472
472
test_expect_code 1 \
473
473
git merge-tree -z B^0 A^0 >out &&
474
- printf "\\n" >>out &&
474
+ echo >>out &&
475
475
anonymize_hash out >actual &&
476
476
477
477
q_to_tab <<-\EOF | lf_to_nul >expect &&
@@ -528,7 +528,7 @@ test_expect_success 'rename/rename(2to1)/delete/delete conflict' '
528
528
529
529
test_expect_code 1 \
530
530
git merge-tree -z A^0 B^0 >out &&
531
- printf "\\n" >>out &&
531
+ echo >>out &&
532
532
anonymize_hash out >actual &&
533
533
534
534
q_to_tab <<-\EOF | lf_to_nul >expect &&
@@ -600,7 +600,7 @@ test_expect_success 'mod6: chains of rename/rename(1to2) and add/add via collidi
600
600
601
601
test_expect_code 1 \
602
602
git merge-tree -z A^0 B^0 >out &&
603
- printf "\\n" >>out &&
603
+ echo >>out &&
604
604
605
605
#
606
606
# First, check that some of the hashes that appear as stage
@@ -662,7 +662,7 @@ test_expect_success 'directory rename + rename/delete + modify/delete + director
662
662
cd 4-stacked-conflict &&
663
663
test_write_lines 1 2 3 4 5 >foo &&
664
664
mkdir olddir &&
665
- for i in a b c; do echo $i >olddir/$i; done
665
+ for i in a b c; do echo $i >olddir/$i || exit 1 ; done &&
666
666
git add foo olddir &&
667
667
git commit -m "original" &&
668
668
@@ -690,7 +690,7 @@ test_expect_success 'directory rename + rename/delete + modify/delete + director
690
690
691
691
test_expect_code 1 \
692
692
git merge-tree -z A^0 B^0 >out &&
693
- printf "\\n" >>out &&
693
+ echo >>out &&
694
694
anonymize_hash out >actual &&
695
695
696
696
q_to_tab <<-\EOF | lf_to_nul >expect &&
@@ -760,8 +760,8 @@ test_expect_success 'NUL terminated conflicted file "lines"' '
760
760
git commit -m "Renamed numbers" &&
761
761
762
762
test_expect_code 1 git merge-tree --write-tree -z tweak1 side2 >out &&
763
+ echo >>out &&
763
764
anonymize_hash out >actual &&
764
- printf "\\n" >>actual &&
765
765
766
766
# Expected results:
767
767
# "greeting" should merge with conflicts
0 commit comments