summaryrefslogtreecommitdiff
path: root/t/t1300-repo-config.sh
diff options
context:
space:
mode:
authorCarlos Rica <jasampler@gmail.com>2009-03-17 09:46:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-17 16:30:00 (GMT)
commitbf71b4b3ee07291e97c4dabfb97e7397eec904e0 (patch)
tree242ed48989dad56a158149758e4a600bccc0fa44 /t/t1300-repo-config.sh
parentba048224685e661a4cf4736dcffab5fc60cbc70b (diff)
downloadgit-bf71b4b3ee07291e97c4dabfb97e7397eec904e0.zip
git-bf71b4b3ee07291e97c4dabfb97e7397eec904e0.tar.gz
git-bf71b4b3ee07291e97c4dabfb97e7397eec904e0.tar.bz2
config: test for --replace-all with one argument and fix documentation.
Option --replace-all only allows at least two arguments, so documentation was needing to be updated accordingly. A test showing that the command fails with only one parameter is also provided. Signed-off-by: Carlos Rica <jasampler@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 11b82f4..f0a7538 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'