t7407: make expectation as clear as possible

Not everyone (including me) grasps the sed expression in a split second as they would grasp the 4 lines printed as is. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Stefan Beller committed Mar 29, 2016 at 18:27 UTC 2ab56603bffb7aed6ec6d2a36deddfdf49cfd5ad
1 file changed +6 -2
t/t7407-submodule-foreach.sh
+6 -2
@@ -262,8 +262,12 @@ test_expect_success 'test "status --recursive"' '
262 test_cmp expect actual
263 '
264
265 -sed -e "/nested2 /s/.*/+$nested2sha1 nested1\/nested2 (file2~1)/;/sub[1-3]/d" < expect > expect2
266 -mv -f expect2 expect
265 +cat > expect <<EOF
266 + $nested1sha1 nested1 (heads/master)
267 ++$nested2sha1 nested1/nested2 (file2~1)
268 + $nested3sha1 nested1/nested2/nested3 (heads/master)
269 + $submodulesha1 nested1/nested2/nested3/submodule (heads/master)
270 +EOF
271
272 test_expect_success 'ensure "status --cached --recursive" preserves the --cached flag' '
273 (