t1300: fix config file syntax error descriptions
Three tests in t1300-config.sh check that "git config --get" barfs when the config file contains various syntax errors: key=value pair without equals sign, broken section line, and broken value string. The sample config files include a comment describing the kind of broken syntax. This description seems to have been copy-pasted from the "broken section line" sample to the other two samples. Fix descriptions of broken config file syntax in samples used in t1300-config.sh. Signed-off-by: Andrei Rybak <rybak.a.v@gmail.com> Reviewed-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Andrei Rybak committed
Apr 17, 2023 at 21:10 UTC
6fc68e7ca3363a15104e7fc30fd1cae4758ac91c
1 file changed
+2
-2
t/t1300-config.sh
+2
-2
@@ -1571,7 +1571,7 @@ test_expect_success 'git config --edit respects core.editor' '
1571
# malformed configuration files
1572
test_expect_success 'barf on syntax error' '
1573
cat >.git/config <<-\EOF &&
1574
- # broken section line
1574
+ # broken key=value
1575
[section]
1576
key garbage
1577
EOF
@@ -1591,7 +1591,7 @@ test_expect_success 'barf on incomplete section header' '
1591
1592
test_expect_success 'barf on incomplete string' '
1593
cat >.git/config <<-\EOF &&
1594
- # broken section line
1594
+ # broken value string
1595
[section]
1596
key = "value string
1597
EOF