]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5606-clone-options.sh
Merge branch 'bc/clone-bare-with-conflicting-config'
[thirdparty/git.git] / t / t5606-clone-options.sh
index 1da6ddb2c56cbf9890f57f8eac1bdc4118796013..428b0aac93fabd0b947294a9929dcab317fd72bd 100755 (executable)
@@ -104,6 +104,14 @@ test_expect_success 'redirected clone -v does show progress' '
 
 '
 
+test_expect_success 'clone does not segfault with --bare and core.bare=false' '
+       test_config_global core.bare false &&
+       git clone --bare parent clone-bare &&
+       echo true >expect &&
+       git -C clone-bare rev-parse --is-bare-repository >actual &&
+       test_cmp expect actual
+'
+
 test_expect_success 'chooses correct default initial branch name' '
        GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME= \
        git -c init.defaultBranch=foo init --bare empty &&