diff options
author | Andrei Rybak <rybak.a.v@gmail.com> | 2023-04-17 21:10:40 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-05-03 08:52:45 -0700 |
commit | 6fc68e7ca3363a15104e7fc30fd1cae4758ac91c (patch) | |
tree | f2876d6c9a41da3ded49d28d1ea03d9c90a43826 | |
parent | ed5288cff22b280f83987ab521fbe451f603213c (diff) | |
download | git-6fc68e7ca3363a15104e7fc30fd1cae4758ac91c.tar.gz |
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>
-rwxr-xr-x | t/t1300-config.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t1300-config.sh b/t/t1300-config.sh index 2575279ab8..d566729d74 100755 --- a/t/t1300-config.sh +++ b/t/t1300-config.sh @@ -1571,7 +1571,7 @@ test_expect_success 'git config --edit respects core.editor' ' # malformed configuration files test_expect_success 'barf on syntax error' ' cat >.git/config <<-\EOF && - # broken section line + # broken key=value [section] key garbage EOF @@ -1591,7 +1591,7 @@ test_expect_success 'barf on incomplete section header' ' test_expect_success 'barf on incomplete string' ' cat >.git/config <<-\EOF && - # broken section line + # broken value string [section] key = "value string EOF |