Skip to content

Commit 52a6674

Browse files
AbdAlRahmanGadgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 95fc11b commit 52a6674

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

t/t7004-tag.sh

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -375,21 +375,21 @@ test_expect_success 'tag -l <pattern> -l <pattern> works, as our buggy documenta
375375

376376
test_expect_success 'listing tags in column' '
377377
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
382382
test_cmp expected actual
383383
'
384384

385385
test_expect_success 'listing tags in column with column.*' '
386386
test_config column.tag row &&
387387
test_config column.ui dense &&
388388
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
393393
test_cmp expected actual
394394
'
395395

@@ -400,17 +400,17 @@ test_expect_success 'listing tag with -n --column should fail' '
400400
test_expect_success 'listing tags -n in column with column.ui ignored' '
401401
test_config column.ui "row dense" &&
402402
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
414414
test_cmp expected actual
415415
'
416416

0 commit comments

Comments
 (0)