t7004: use single quotes instead of double quotes

Some test bodies and test description are surrounded with double quotes instead of single quotes, violating our coding style. 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 2f44f11b0a8ffaa88265325a4dbe40ea712da887
1 file changed +35 -35
t/t7004-tag.sh
+35 -35
@@ -1583,7 +1583,7 @@ test_expect_success 'creating third commit without tag' '
1583
1584 # simple linear checks of --continue
1585
1586 -test_expect_success 'checking that first commit is in all tags (hash)' "
1586 +test_expect_success 'checking that first commit is in all tags (hash)' '
1587 hash3=$(git rev-parse HEAD) &&
1588 cat >expected <<-\EOF &&
1589 v0.2.1
@@ -1594,10 +1594,10 @@ test_expect_success 'checking that first commit is in all tags (hash)' "
1594 EOF
1595 git tag -l --contains $hash1 v* >actual &&
1596 test_cmp expected actual
1597 -"
1597 +'
1598
1599 # other ways of specifying the commit
1600 -test_expect_success 'checking that first commit is in all tags (tag)' "
1600 +test_expect_success 'checking that first commit is in all tags (tag)' '
1601 cat >expected <<-\EOF &&
1602 v0.2.1
1603 v1.0
@@ -1607,9 +1607,9 @@ test_expect_success 'checking that first commit is in all tags (tag)' "
1607 EOF
1608 git tag -l --contains v1.0 v* >actual &&
1609 test_cmp expected actual
1610 -"
1610 +'
1611
1612 -test_expect_success 'checking that first commit is in all tags (relative)' "
1612 +test_expect_success 'checking that first commit is in all tags (relative)' '
1613 cat >expected <<-\EOF &&
1614 v0.2.1
1615 v1.0
@@ -1619,33 +1619,33 @@ test_expect_success 'checking that first commit is in all tags (relative)' "
1619 EOF
1620 git tag -l --contains HEAD~2 v* >actual &&
1621 test_cmp expected actual
1622 -"
1622 +'
1623
1624 # All the --contains tests above, but with --no-contains
1625 -test_expect_success 'checking that first commit is not listed in any tag with --no-contains (hash)' "
1625 +test_expect_success 'checking that first commit is not listed in any tag with --no-contains (hash)' '
1626 git tag -l --no-contains $hash1 v* >actual &&
1627 test_must_be_empty actual
1628 -"
1628 +'
1629
1630 -test_expect_success 'checking that first commit is in all tags (tag)' "
1630 +test_expect_success 'checking that first commit is in all tags (tag)' '
1631 git tag -l --no-contains v1.0 v* >actual &&
1632 test_must_be_empty actual
1633 -"
1633 +'
1634
1635 -test_expect_success 'checking that first commit is in all tags (relative)' "
1635 +test_expect_success 'checking that first commit is in all tags (relative)' '
1636 git tag -l --no-contains HEAD~2 v* >actual &&
1637 test_must_be_empty actual
1638 -"
1638 +'
1639
1640 -test_expect_success 'checking that second commit only has one tag' "
1640 +test_expect_success 'checking that second commit only has one tag' '
1641 cat >expected <<-\EOF &&
1642 v2.0
1643 EOF
1644 git tag -l --contains $hash2 v* >actual &&
1645 test_cmp expected actual
1646 -"
1646 +'
1647
1648 -test_expect_success 'inverse of the last test, with --no-contains' "
1648 +test_expect_success 'inverse of the last test, with --no-contains' '
1649 cat >expected <<-\EOF &&
1650 v0.2.1
1651 v1.0
@@ -1654,14 +1654,14 @@ test_expect_success 'inverse of the last test, with --no-contains' "
1654 EOF
1655 git tag -l --no-contains $hash2 v* >actual &&
1656 test_cmp expected actual
1657 -"
1657 +'
1658
1659 -test_expect_success 'checking that third commit has no tags' "
1659 +test_expect_success 'checking that third commit has no tags' '
1660 git tag -l --contains $hash3 v* >actual &&
1661 test_must_be_empty actual
1662 -"
1662 +'
1663
1664 -test_expect_success 'conversely --no-contains on the third commit lists all tags' "
1664 +test_expect_success 'conversely --no-contains on the third commit lists all tags' '
1665 cat >expected <<-\EOF &&
1666 v0.2.1
1667 v1.0
@@ -1671,7 +1671,7 @@ test_expect_success 'conversely --no-contains on the third commit lists all tags
1671 EOF
1672 git tag -l --no-contains $hash3 v* >actual &&
1673 test_cmp expected actual
1674 -"
1674 +'
1675
1676 # how about a simple merge?
1677
@@ -1692,7 +1692,7 @@ test_expect_success 'checking that branch head only has one tag' '
1692 test_cmp expected actual
1693 '
1694
1695 -test_expect_success 'checking that branch head with --no-contains lists all but one tag' "
1695 +test_expect_success 'checking that branch head with --no-contains lists all but one tag' '
1696 cat >expected <<-\EOF &&
1697 v0.2.1
1698 v1.0
@@ -1702,22 +1702,22 @@ test_expect_success 'checking that branch head with --no-contains lists all but
1702 EOF
1703 git tag -l --no-contains $hash4 v* >actual &&
1704 test_cmp expected actual
1705 -"
1705 +'
1706
1707 test_expect_success 'merging original branch into this branch' '
1708 git merge --strategy=ours main &&
1709 git tag v4.0
1710 '
1711
1712 -test_expect_success 'checking that original branch head has one tag now' "
1712 +test_expect_success 'checking that original branch head has one tag now' '
1713 cat >expected <<-\EOF &&
1714 v4.0
1715 EOF
1716 git tag -l --contains $hash3 v* >actual &&
1717 test_cmp expected actual
1718 -"
1718 +'
1719
1720 -test_expect_success 'checking that original branch head with --no-contains lists all but one tag now' "
1720 +test_expect_success 'checking that original branch head with --no-contains lists all but one tag now' '
1721 cat >expected <<-\EOF &&
1722 v0.2.1
1723 v1.0
@@ -1728,9 +1728,9 @@ test_expect_success 'checking that original branch head with --no-contains lists
1728 EOF
1729 git tag -l --no-contains $hash3 v* >actual &&
1730 test_cmp expected actual
1731 -"
1731 +'
1732
1733 -test_expect_success 'checking that initial commit is in all tags' "
1733 +test_expect_success 'checking that initial commit is in all tags' '
1734 cat >expected <<-\EOF &&
1735 v0.2.1
1736 v1.0
@@ -1742,7 +1742,7 @@ test_expect_success 'checking that initial commit is in all tags' "
1742 EOF
1743 git tag -l --contains $hash1 v* >actual &&
1744 test_cmp expected actual
1745 -"
1745 +'
1746
1747 test_expect_success 'checking that --contains can be used in non-list mode' '
1748 cat >expected <<-\EOF &&
@@ -1758,10 +1758,10 @@ test_expect_success 'checking that --contains can be used in non-list mode' '
1758 test_cmp expected actual
1759 '
1760
1761 -test_expect_success 'checking that initial commit is in all tags with --no-contains' "
1761 +test_expect_success 'checking that initial commit is in all tags with --no-contains' '
1762 git tag -l --no-contains $hash1 v* >actual &&
1763 test_must_be_empty actual
1764 -"
1764 +'
1765
1766 # mixing modes and options:
1767
@@ -1798,16 +1798,16 @@ test_expect_success 'mixing incompatibles modes and options is forbidden' '
1798
1799 for option in --contains --with --no-contains --without --merged --no-merged --points-at
1800 do
1801 - test_expect_success "mixing incompatible modes with $option is forbidden" "
1801 + test_expect_success "mixing incompatible modes with $option is forbidden" '
1802 test_must_fail git tag -d $option HEAD &&
1803 test_must_fail git tag -d $option HEAD some-tag &&
1804 test_must_fail git tag -v $option HEAD
1805 - "
1806 - test_expect_success "Doing 'git tag --list-like $option <commit> <pattern> is permitted" "
1805 + '
1806 + test_expect_success "Doing 'git tag --list-like $option <commit> <pattern> is permitted" '
1807 git tag -n $option HEAD HEAD &&
1808 git tag $option HEAD HEAD &&
1809 git tag $option
1810 - "
1810 + '
1811 done
1812
1813 # check points-at
@@ -2183,7 +2183,7 @@ test_expect_success 'git tag -l with --format="%(rest)" must fail' '
2183 test_must_fail git tag -l --format="%(rest)" "v1*"
2184 '
2185
2186 -test_expect_success "set up color tests" '
2186 +test_expect_success 'set up color tests' '
2187 echo "<RED>v1.0<RESET>" >expect.color &&
2188 echo "v1.0" >expect.bare &&
2189 color_args="--format=%(color:red)%(refname:short) --list v1.0"