aboutsummaryrefslogtreecommitdiff
path: root/t/t1300-repo-config.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-03-20 14:29:03 -0700
committerJunio C Hamano <gitster@pobox.com>2009-03-20 14:29:03 -0700
commit17e46ea6fea5273b51b424a8016f9da3412792d4 (patch)
treeb394b7c1d2d280d7a8fac60ff63e741c310c5bbf /t/t1300-repo-config.sh
parent8f0246551c3964eeb16d9c9f39845bd53af8bda8 (diff)
parentbf71b4b3ee07291e97c4dabfb97e7397eec904e0 (diff)
downloadgit-17e46ea6fea5273b51b424a8016f9da3412792d4.tar.gz
git-17e46ea6fea5273b51b424a8016f9da3412792d4.tar.xz
Merge branch 'fc/parseopt-config'
* fc/parseopt-config: config: test for --replace-all with one argument and fix documentation. config: set help text for --bool-or-int git config: don't allow --get-color* and variable type git config: don't allow extra arguments for -e or -l. git config: don't allow multiple variable types git config: don't allow multiple config file locations git config: reorganize to use parseopt git config: reorganize get_color* git config: trivial rename in preparation for parseopt git_config(): not having a per-repo config file is not an error
Diffstat (limited to 't/t1300-repo-config.sh')
-rwxr-xr-xt/t1300-repo-config.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index 3c06842d9..9c81e041b 100755
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
@@ -118,7 +118,14 @@ EOF
test_expect_success 'multiple unset is correct' 'cmp .git/config expect'
-mv .git/config2 .git/config
+cp .git/config2 .git/config
+
+test_expect_success '--replace-all missing value' '
+ test_must_fail git config --replace-all beta.haha &&
+ test_cmp .git/config2 .git/config
+'
+
+rm .git/config2
test_expect_success '--replace-all' \
'git config --replace-all beta.haha gamma'