Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 8d644d4

Browse files
committed
fixup! Merge pull request #158 from kasal/test-simplify
This reverts commit 56e5a97, reversing changes made to 5769bd5. We will merge the `win-tests-rebase` branch in a moment which makes this pull request obsolete. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f9f2084 commit 8d644d4

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

t/t7407-submodule-foreach.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ test_expect_success 'test basic "submodule foreach" usage' '
7777
git config foo.bar zar &&
7878
git submodule foreach "git config --file \"\$toplevel/.git/config\" foo.bar"
7979
) &&
80+
if test_have_prereq MINGW
81+
then
82+
dos2unix actual
83+
fi &&
8084
test_i18ncmp expect actual
8185
'
8286

@@ -174,6 +178,10 @@ test_expect_success 'test messages from "foreach --recursive"' '
174178
cd clone2 &&
175179
git submodule foreach --recursive "true" > ../actual
176180
) &&
181+
if test_have_prereq MINGW
182+
then
183+
dos2unix actual
184+
fi &&
177185
test_i18ncmp expect actual
178186
'
179187

@@ -192,7 +200,11 @@ test_expect_success 'test "foreach --quiet --recursive"' '
192200
cd clone2 &&
193201
git submodule foreach -q --recursive "echo \$name-\$path" > ../actual
194202
) &&
195-
test_cmp_text expect actual
203+
if test_have_prereq MINGW
204+
then
205+
dos2unix actual
206+
fi &&
207+
test_cmp expect actual
196208
'
197209

198210
test_expect_success 'use "update --recursive" to checkout all submodules' '
@@ -239,6 +251,10 @@ test_expect_success 'test "status --recursive"' '
239251
cd clone3 &&
240252
git submodule status --recursive > ../actual
241253
) &&
254+
if test_have_prereq MINGW
255+
then
256+
dos2unix actual
257+
fi &&
242258
test_cmp expect actual
243259
'
244260

0 commit comments

Comments
 (0)