git config --unset: remove empty sections (in the common case)
[gitweb.git] / t / t1300-config.sh
index 8a3cd2c11416643af32c184bfee7bd53c6213005..92aaa53794d20f971d42f109079347c1cbc3da42 100755 (executable)
@@ -1390,7 +1390,7 @@ test_expect_success 'urlmatch with wildcard' '
 '
 
 # good section hygiene
-test_expect_failure '--unset last key removes section (except if commented)' '
+test_expect_success '--unset last key removes section (except if commented)' '
        cat >.git/config <<-\EOF &&
        # some generic comment on the configuration file itself
        # a comment specific to this "section" section.
@@ -1472,7 +1472,7 @@ test_expect_failure '--unset last key removes section (except if commented)' '
        test_line_count = 3 .git/config
 '
 
-test_expect_failure '--unset-all removes section if empty & uncommented' '
+test_expect_success '--unset-all removes section if empty & uncommented' '
        cat >.git/config <<-\EOF &&
        [section]
        key = value1