t1300: avoid relying on a bug

The test case 'unset with cont. lines' relied on a bug that is about to be fixed: it tests *explicitly* that removing the last entry from a config section leaves an *empty* section behind. Let's fix this test case not to rely on that behavior, simply by preventing the section from becoming empty. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Apr 3, 2018 at 18:28 UTC 85bf5d61e717f79f7ac68d15e336e54293035405
1 file changed +2
t/t1300-config.sh
+2
@@ -108,6 +108,7 @@ bar = foo
108 [beta]
109 baz = multiple \
110 lines
111 +foo = bar
112 EOF
113
114 test_expect_success 'unset with cont. lines' '
@@ -118,6 +119,7 @@ cat > expect <<\EOF
119 [alpha]
120 bar = foo
121 [beta]
122 +foo = bar
123 EOF
124
125 test_expect_success 'unset with cont. lines is correct' 'test_cmp expect .git/config'