Skip to content

Commit 6fc68e7

Browse files
rybakgitster
authored andcommitted
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 <[email protected]> Reviewed-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ed5288c commit 6fc68e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t1300-config.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ test_expect_success 'git config --edit respects core.editor' '
15711571
# malformed configuration files
15721572
test_expect_success 'barf on syntax error' '
15731573
cat >.git/config <<-\EOF &&
1574-
# broken section line
1574+
# broken key=value
15751575
[section]
15761576
key garbage
15771577
EOF
@@ -1591,7 +1591,7 @@ test_expect_success 'barf on incomplete section header' '
15911591

15921592
test_expect_success 'barf on incomplete string' '
15931593
cat >.git/config <<-\EOF &&
1594-
# broken section line
1594+
# broken value string
15951595
[section]
15961596
key = "value string
15971597
EOF

0 commit comments

Comments
 (0)