Skip to content

Commit 04b4f7d

Browse files
committed
Merge branch 'sb/submodule-update-initial-runs-custom-script' into maint
A test fix. * sb/submodule-update-initial-runs-custom-script: t7406: correct test case for submodule-update initial population
2 parents 27ee56f + a4dded0 commit 04b4f7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t7406-submodule-update.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,11 +442,11 @@ test_expect_success 'submodule update - command in .git/config catches failure -
442442
'
443443

444444
test_expect_success 'submodule update - command run for initial population of submodule' '
445-
cat <<-\ EOF >expect
445+
cat >expect <<-EOF &&
446446
Execution of '\''false $submodulesha1'\'' failed in submodule path '\''submodule'\''
447-
EOF &&
447+
EOF
448448
rm -rf super/submodule &&
449-
test_must_fail git -C super submodule update >../actual &&
449+
test_must_fail git -C super submodule update 2>actual &&
450450
test_cmp expect actual &&
451451
git -C super submodule update --checkout
452452
'

0 commit comments

Comments
 (0)