diff options
Diffstat (limited to 't')
-rwxr-xr-x | t/t1300-config.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t1300-config.sh b/t/t1300-config.sh index efdf2bf997..cc68b42b97 100755 --- a/t/t1300-config.sh +++ b/t/t1300-config.sh @@ -1416,6 +1416,14 @@ test_expect_success 'git -c and --config-env override each other' ' test_cmp expect actual ' +test_expect_success '--config-env handles keys with equals' ' + echo value=with=equals >expect && + ENVVAR=value=with=equals git \ + --config-env=section.subsection=with=equals.key=ENVVAR \ + config section.subsection=with=equals.key >actual && + test_cmp expect actual +' + test_expect_success 'git config --edit works' ' git config -f tmp test.value no && echo test.value=yes >expect && |