Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-05-10 20:23:28 +0300
committerJunio C Hamano <gitster@pobox.com>2023-05-10 20:23:28 +0300
commit7f3cc51b284d696fdb8dfbd8c9f9d0c014019d93 (patch)
tree652b905e1786b3bb2587f59dbcda390f0e93ac8b /t/t1300-config.sh
parentb6e9521956b752be4c666efedd7b91bdd05f9756 (diff)
parenta5855fd8d43fa21302305c4e80a3bfd9b16c9508 (diff)
Merge branch 'ar/test-cleanup-unused-file-creation-part2'
Test cleanup. * ar/test-cleanup-unused-file-creation-part2: t2019: don't create unused files t1502: don't create unused files t1450: don't create unused files t1300: don't create unused files t1300: fix config file syntax error descriptions t0300: don't create unused file
Diffstat (limited to 't/t1300-config.sh')
-rwxr-xr-xt/t1300-config.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/t1300-config.sh b/t/t1300-config.sh
index f1d42b62b0..34d30f3bc6 100755
--- a/t/t1300-config.sh
+++ b/t/t1300-config.sh
@@ -1601,11 +1601,11 @@ 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
- test_must_fail git config --get section.key >actual 2>error &&
+ test_must_fail git config --get section.key 2>error &&
test_i18ngrep " line 3 " error
'
@@ -1615,17 +1615,17 @@ test_expect_success 'barf on incomplete section header' '
[section
key = value
EOF
- test_must_fail git config --get section.key >actual 2>error &&
+ test_must_fail git config --get section.key 2>error &&
test_i18ngrep " line 2 " error
'
test_expect_success 'barf on incomplete string' '
cat >.git/config <<-\EOF &&
- # broken section line
+ # broken value string
[section]
key = "value string
EOF
- test_must_fail git config --get section.key >actual 2>error &&
+ test_must_fail git config --get section.key 2>error &&
test_i18ngrep " line 3 " error
'