git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Complain in the tests about git config not failing with, keys without a section
@ 2012-03-02 10:57 Rune Schjellerup Philosof
  2012-03-02 18:40 ` Junio C Hamano
  0 siblings, 1 reply; 6+ messages in thread
From: Rune Schjellerup Philosof @ 2012-03-02 10:57 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 1044 bytes --]

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


[-- Attachment #2: S/MIME-signeret meddelelse --]
[-- Type: application/pkcs7-signature, Size: 2033 bytes --]

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-06  8:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02 10:57 [PATCH 1/2] Complain in the tests about git config not failing with, keys without a section Rune Schjellerup Philosof
2012-03-02 18:40 ` Junio C Hamano
2012-03-05  7:59   ` Rune Philosof
2012-03-05 10:37     ` Jeff King
2012-03-05 19:29       ` Junio C Hamano
2012-03-06  8:06         ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).