Define a built-in attribute macro "binary".
[gitweb.git] / t / t1300-repo-config.sh
index 84a59397b2427615165a243f2fd53e81ee8f8ce9..78c2e0864f56ecf39e8738e8fecec9ca8dd4e8a2 100755 (executable)
@@ -391,6 +391,22 @@ EOF
 
 test_expect_success "rename succeeded" "git diff expect .git/config"
 
+cat >> .git/config << EOF
+  [branch "zwei"] a = 1 [branch "vier"]
+EOF
+
+test_expect_success "remove section" "git config --remove-section branch.zwei"
+
+cat > expect << EOF
+# Hallo
+       #Bello
+[branch "drei"]
+weird
+EOF
+
+test_expect_success "section was removed properly" \
+       "git diff -u expect .git/config"
+
 test_expect_success numbers '
 
        git-config kilo.gram 1k &&