aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-05-21 04:02:14 -0700
committerJunio C Hamano <gitster@pobox.com>2010-05-21 04:02:14 -0700
commit7f3ed824a4ec15fc9725a4992b399ea4364c5adb (patch)
tree7604efbf6f1b7511449f87a937658d6efa53ddcc /t
parente2ab0227aab5cdcede3b39e4c95b118f09a71d29 (diff)
parentb3d83d9f2ef1b0f0f53bb7254e234c743aa42817 (diff)
downloadgit-7f3ed824a4ec15fc9725a4992b399ea4364c5adb.tar.gz
git-7f3ed824a4ec15fc9725a4992b399ea4364c5adb.tar.xz
Merge branch 'ar/config-from-command-line'
* ar/config-from-command-line: Complete prototype of git_config_from_parameters() Use strbufs instead of open-coded string manipulation Allow passing of configuration parameters in the command line
Diffstat (limited to 't')
-rwxr-xr-xt/t1300-repo-config.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index f11f98c3c..64f05080b 100755
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
@@ -824,4 +824,12 @@ test_expect_success 'check split_cmdline return' "
test_must_fail git merge master
"
+test_expect_success 'git -c "key=value" support' '
+ test "z$(git -c name=value config name)" = zvalue &&
+ test "z$(git -c core.name=value config core.name)" = zvalue &&
+ test "z$(git -c CamelCase=value config camelcase)" = zvalue &&
+ test "z$(git -c flag config --bool flag)" = ztrue &&
+ test_must_fail git -c core.name=value config name
+'
+
test_done