Skip to content

Commit 2ab5660

Browse files
stefanbellergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c1e06d1 commit 2ab5660

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

t/t7407-submodule-foreach.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,12 @@ test_expect_success 'test "status --recursive"' '
262262
test_cmp expect actual
263263
'
264264

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
267271

268272
test_expect_success 'ensure "status --cached --recursive" preserves the --cached flag' '
269273
(

0 commit comments

Comments
 (0)