diff options
Diffstat (limited to 't')
-rwxr-xr-x | t/t5606-clone-options.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t5606-clone-options.sh b/t/t5606-clone-options.sh index 7f082fb23b..88349343e8 100755 --- a/t/t5606-clone-options.sh +++ b/t/t5606-clone-options.sh @@ -101,6 +101,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 init --bare empty && GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME= \ |