t1300: `--unset-all` can leave an empty section behind (bug)
commitb73bdc34c06358359750a896983a2ea85b694ca0
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 9 Apr 2018 08:32:02 +0000 (9 10:32 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Apr 2018 12:32:58 +0000 (9 21:32 +0900)
tree311064e15702bd725a5145c693e1dab756827080
parent422e8ef26d35a7e54d5b7b990669f4a525cb8828
t1300: `--unset-all` can leave an empty section behind (bug)

We already have a test demonstrating that removing the last entry from a
config section fails to remove the section header of the now-empty
section.

The same can happen, of course, if we remove the last entries in one fell
swoop. This is *also* a bug, and should be fixed at the same time.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1300-config.sh