summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2007-03-08 00:53:38 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2007-03-08 00:53:38 -0800
commitbd1fc628b8d456bdaea3e10d435cf1e98bc5d8a8 (patch)
tree0c8847f5b24622dc1158edd48b3e0de1cd7f3255 /t
parentMerge branch 'master' of git://repo.or.cz/git/fastimport (diff)
parentgit-config: document --rename-section, provide --remove-section (diff)
downloadtgif-bd1fc628b8d456bdaea3e10d435cf1e98bc5d8a8.tar.xz
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 &&