summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-03-08 00:53:38 -0800
committerJunio C Hamano <junkio@cox.net>2007-03-08 00:53:38 -0800
commitbd1fc628b8d456bdaea3e10d435cf1e98bc5d8a8 (patch)
tree0c8847f5b24622dc1158edd48b3e0de1cd7f3255 /t
parentf45fa2a073da591f3ac0b63900e07afa2dccee44 (diff)
parent118f8b241355b38cd21e644e8620d81f10190627 (diff)
downloadgit-bd1fc628b8d456bdaea3e10d435cf1e98bc5d8a8.tar.gz
Merge branch 'js/config-rename'
* js/config-rename: git-config: document --rename-section, provide --remove-section
Diffstat (limited to 't')
-rwxr-xr-xt/t1300-repo-config.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index 49b5666b33..ee386cfbf3 100755
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
@@ -391,6 +391,22 @@ EOF
test_expect_success "rename succeeded" "diff -u 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" \
+ "diff -u expect .git/config"
+
test_expect_success numbers '
git-config kilo.gram 1k &&