t7406: correct test case for submodule-update initial population
[gitweb.git] / t / t7406-submodule-update.sh
index 8c086a429b8253871b652265390ff6ba47c7074d..a70fe96ad6ec8b0932e37186b3556b8d4eb28bc8 100755 (executable)
@@ -425,11 +425,11 @@ test_expect_success 'submodule update - command in .git/config catches failure -
 '
 
 test_expect_success 'submodule update - command run for initial population of submodule' '
-       cat <<-\ EOF >expect
+       cat >expect <<-EOF &&
        Execution of '\''false $submodulesha1'\'' failed in submodule path '\''submodule'\''
-       EOF &&
+       EOF
        rm -rf super/submodule &&
-       test_must_fail git -C super submodule update >../actual &&
+       test_must_fail git -C super submodule update 2>actual &&
        test_cmp expect actual &&
        git -C super submodule update --checkout
 '