3 test_description='tests for git clone -c key=value'
6 test_expect_success 'clone -c sets config in cloned repo' '
8 git clone -c core.foo=bar . child &&
10 git --git-dir=child/.git config core.foo >actual &&
11 test_cmp expect actual
14 test_expect_success 'clone -c can set multi-keys' '
16 git clone -c core.foo=bar -c core.foo=baz . child &&
17 { echo bar; echo baz; } >expect &&
18 git --git-dir=child/.git config --get-all core.foo >actual &&
19 test_cmp expect actual
22 test_expect_success 'clone -c without a value is boolean true' '
24 git clone -c core.foo . child &&
26 git --git-dir=child/.git config --bool core.foo >actual &&
27 test_cmp expect actual
30 test_expect_success 'clone -c config is available during clone' '
35 git clone -c core.autocrlf . child &&
36 printf "content\\r\\n" >expect &&
37 test_cmp expect child/file