X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft0001-init.sh;h=2a38d98cb46ec5392093dc3c0eedf28d6f56c96b;hb=d1f2e1696ce168b3a70b59be7c58fa96c530d4fb;hp=b0289e397ab683c8c5a02ce649d7790d6a876d16;hpb=a473445ac256f4a6ca5c66f83f33b85eec0e0c48;p=git.git diff --git a/t/t0001-init.sh b/t/t0001-init.sh index b0289e397..2a38d98cb 100755 --- a/t/t0001-init.sh +++ b/t/t0001-init.sh @@ -79,6 +79,17 @@ test_expect_success 'GIT_DIR bare' ' check_config git-dir-bare.git true unset ' +test_expect_success 'init --bare' ' + + ( + unset GIT_DIR GIT_WORK_TREE GIT_CONFIG + mkdir init-bare.git && + cd init-bare.git && + git init --bare + ) && + check_config init-bare.git true unset +' + test_expect_success 'GIT_DIR non-bare' ' (