t7004: use indented here-doc

Use <<-\EOF instead of <<\EOF where the latter allows us to indent the body of the here-doc. Signed-off-by: AbdAlRahman Gad <abdobngad@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

AbdAlRahman Gad committed Aug 8, 2024 at 19:32 UTC 52a6674a4d56915df7f2418fc50711ac2c4d0310
1 file changed +19 -19
t/t7004-tag.sh
+19 -19
@@ -375,10 +375,10 @@ test_expect_success 'tag -l <pattern> -l <pattern> works, as our buggy documenta
375
376 test_expect_success 'listing tags in column' '
377 COLUMNS=41 git tag -l --column=row >actual &&
378 - cat >expected <<\EOF &&
379 -a1 aa1 cba t210 t211
380 -v0.2.1 v1.0 v1.0.1 v1.1.3
381 -EOF
378 + cat >expected <<-\EOF &&
379 + a1 aa1 cba t210 t211
380 + v0.2.1 v1.0 v1.0.1 v1.1.3
381 + EOF
382 test_cmp expected actual
383 '
384
@@ -386,10 +386,10 @@ test_expect_success 'listing tags in column with column.*' '
386 test_config column.tag row &&
387 test_config column.ui dense &&
388 COLUMNS=40 git tag -l >actual &&
389 - cat >expected <<\EOF &&
390 -a1 aa1 cba t210 t211
391 -v0.2.1 v1.0 v1.0.1 v1.1.3
392 -EOF
389 + cat >expected <<-\EOF &&
390 + a1 aa1 cba t210 t211
391 + v0.2.1 v1.0 v1.0.1 v1.1.3
392 + EOF
393 test_cmp expected actual
394 '
395
@@ -400,17 +400,17 @@ test_expect_success 'listing tag with -n --column should fail' '
400 test_expect_success 'listing tags -n in column with column.ui ignored' '
401 test_config column.ui "row dense" &&
402 COLUMNS=40 git tag -l -n >actual &&
403 - cat >expected <<\EOF &&
404 -a1 Foo
405 -aa1 Foo
406 -cba Foo
407 -t210 Foo
408 -t211 Foo
409 -v0.2.1 Foo
410 -v1.0 Foo
411 -v1.0.1 Foo
412 -v1.1.3 Foo
413 -EOF
403 + cat >expected <<-\EOF &&
404 + a1 Foo
405 + aa1 Foo
406 + cba Foo
407 + t210 Foo
408 + t211 Foo
409 + v0.2.1 Foo
410 + v1.0 Foo
411 + v1.0.1 Foo
412 + v1.1.3 Foo
413 + EOF
414 test_cmp expected actual
415 '
416