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
This commit is contained in:
@ -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'
|
||||
|
||||
Reference in New Issue
Block a user