git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] Complain in the tests about git config not failing with, keys without a section

From
RPRune Schjellerup Philosof <rune@philosof.dk>
Date
Mar 2, 2012, 10:57 UTC
Message-ID
<4F50A79E.5060206@philosof.dk>
From c4fc13a5a1e8c1eab9873232e6e8b7e0523cd6ea Mon Sep 17 00:00:00 2001
From: Rune Philosof <rune.git@philosof.dk>
Date: Fri, 2 Mar 2012 10:42:23 +0100
Subject: [PATCH 1/2] Complain in the tests about git config not failing with
 keys without a section
git is supposed to fail when having a key without a section, but does not.
Signed-off-by: Rune Philosof <rune.git@philosof.dk>
---
 t/t1300-repo-config.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index 5f249f6..81ccad5 100755
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
@@ -928,6 +928,11 @@ test_expect_success 'git -c "key=value" support' '
 	test_must_fail git -c name=value config core.name
 '

+test_expect_failure 'No section' '
+	echo "fail=true" > failconf &&
+	test_must_fail git config --file failconf --list
+'
+
 test_expect_success 'key sanity-checking' '
 	test_must_fail git config foo=bar &&
 	test_must_fail git config foo=.bar &&
-- 
1.7.5.4
Next: Junio C Hamano
Message 1 of 6 in “Complain in the tests about git config not failing with, keys without a section”
  1. 1/2 Complain in the tests about git config not failing with, keys without a sectionRune Schjellerup Philosof, Mar 2, 2012
  2. Junio C HamanoMar 2, 2012
  3. Rune PhilosofMar 5, 2012
  4. Jeff KingMar 5, 2012
  5. Junio C HamanoMar 5, 2012
  6. Jeff KingMar 6, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.