summaryrefslogtreecommitdiff
path: root/t/t1300-config.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-04-03 16:28:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-05 23:30:03 (GMT)
commit85bf5d61e717f79f7ac68d15e336e54293035405 (patch)
tree5a51d1c346d8d23a09f3ff8d4958a048f4a47010 /t/t1300-config.sh
parent46fc89ce74b46e88764c796b3ab20d5ab90a5e96 (diff)
downloadgit-85bf5d61e717f79f7ac68d15e336e54293035405.zip
git-85bf5d61e717f79f7ac68d15e336e54293035405.tar.gz
git-85bf5d61e717f79f7ac68d15e336e54293035405.tar.bz2
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>
Diffstat (limited to 't/t1300-config.sh')
-rwxr-xr-xt/t1300-config.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t1300-config.sh b/t/t1300-config.sh
index 8f37ffa..05c011e 100755
--- a/t/t1300-config.sh
+++ b/t/t1300-config.sh
@@ -108,6 +108,7 @@ bar = foo
[beta]
baz = multiple \
lines
+foo = bar
EOF
test_expect_success 'unset with cont. lines' '
@@ -118,6 +119,7 @@ cat > expect <<\EOF
[alpha]
bar = foo
[beta]
+foo = bar
EOF
test_expect_success 'unset with cont. lines is correct' 'test_cmp expect .git/config'