@@ -29,20 +29,19 @@ test_expect_success 'Report new path with conflict' '
2929 test_cmp expect actual
3030'
3131
32- cat > expect << EOF
33- # On branch side
34- # You have unmerged paths.
35- # (fix conflicts and run "git commit")
36- #
37- # Unmerged paths:
38- # (use "git add/rm <file>..." as appropriate to mark resolution)
39- #
40- # deleted by us: foo
41- #
32+ test_expect_success ' M/D conflict does not segfault' '
33+ cat >expect <<EOF &&
34+ On branch side
35+ You have unmerged paths.
36+ (fix conflicts and run "git commit")
37+
38+ Unmerged paths:
39+ (use "git add/rm <file>..." as appropriate to mark resolution)
40+
41+ deleted by us: foo
42+
4243no changes added to commit (use "git add" and/or "git commit -a")
4344EOF
44-
45- test_expect_success ' M/D conflict does not segfault' '
4645 mkdir mdconflict &&
4746 (
4847 cd mdconflict &&
@@ -135,19 +134,19 @@ test_expect_success 'status when conflicts with add and rm advice (deleted by th
135134 test_commit on_second main.txt on_second &&
136135 test_commit master conflict.txt master &&
137136 test_must_fail git merge second_branch &&
138- cat >expected <<- \EOF &&
139- # On branch master
140- # You have unmerged paths.
141- # (fix conflicts and run "git commit")
142- #
143- # Unmerged paths:
144- # (use "git add/rm <file>..." as appropriate to mark resolution)
145- #
146- # both added: conflict.txt
147- # deleted by them: main.txt
148- #
149- no changes added to commit (use "git add" and/or "git commit -a")
150- EOF
137+ cat >expected <<\EOF &&
138+ On branch master
139+ You have unmerged paths.
140+ (fix conflicts and run "git commit")
141+
142+ Unmerged paths:
143+ (use "git add/rm <file>..." as appropriate to mark resolution)
144+
145+ both added: conflict.txt
146+ deleted by them: main.txt
147+
148+ no changes added to commit (use "git add" and/or "git commit -a")
149+ EOF
151150 git status --untracked-files=no >actual &&
152151 test_i18ncmp expected actual
153152'
@@ -168,20 +167,20 @@ test_expect_success 'prepare for conflicts' '
168167
169168test_expect_success ' status when conflicts with add and rm advice (both deleted)' '
170169 test_must_fail git merge conflict &&
171- cat >expected <<- \EOF &&
172- # On branch conflict_second
173- # You have unmerged paths.
174- # (fix conflicts and run "git commit")
175- #
176- # Unmerged paths:
177- # (use "git add/rm <file>..." as appropriate to mark resolution)
178- #
179- # both deleted: main.txt
180- # added by them: sub_master.txt
181- # added by us: sub_second.txt
182- #
183- no changes added to commit (use "git add" and/or "git commit -a")
184- EOF
170+ cat >expected <<\EOF &&
171+ On branch conflict_second
172+ You have unmerged paths.
173+ (fix conflicts and run "git commit")
174+
175+ Unmerged paths:
176+ (use "git add/rm <file>..." as appropriate to mark resolution)
177+
178+ both deleted: main.txt
179+ added by them: sub_master.txt
180+ added by us: sub_second.txt
181+
182+ no changes added to commit (use "git add" and/or "git commit -a")
183+ EOF
185184 git status --untracked-files=no >actual &&
186185 test_i18ncmp expected actual
187186'
@@ -192,22 +191,22 @@ test_expect_success 'status when conflicts with only rm advice (both deleted)' '
192191 test_must_fail git merge conflict &&
193192 git add sub_master.txt &&
194193 git add sub_second.txt &&
195- cat >expected <<- \EOF &&
196- # On branch conflict_second
197- # You have unmerged paths.
198- # (fix conflicts and run "git commit")
199- #
200- # Changes to be committed:
201- #
202- # new file: sub_master.txt
203- #
204- # Unmerged paths:
205- # (use "git rm <file>..." to mark resolution)
206- #
207- # both deleted: main.txt
208- #
209- # Untracked files not listed (use -u option to show untracked files)
210- EOF
194+ cat >expected <<\EOF &&
195+ On branch conflict_second
196+ You have unmerged paths.
197+ (fix conflicts and run "git commit")
198+
199+ Changes to be committed:
200+
201+ new file: sub_master.txt
202+
203+ Unmerged paths:
204+ (use "git rm <file>..." to mark resolution)
205+
206+ both deleted: main.txt
207+
208+ Untracked files not listed (use -u option to show untracked files)
209+ EOF
211210 git status --untracked-files=no >actual &&
212211 test_i18ncmp expected actual &&
213212 git reset --hard &&
0 commit comments