diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-07-18 13:31:55 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-07-18 13:31:55 -0700 |
commit | 3d3874d537af1149c85b73d7c4317ed1b0d0b419 (patch) | |
tree | 577fde64cf3c19bd7a39bc526a02d49b17113f49 /t/t5000-tar-tree.sh | |
parent | 48e88a4862f3f0353f7a795dae0346dca0043829 (diff) | |
parent | ead74601c6ed7171e9e736e329b45c12d90153e4 (diff) | |
download | git-3d3874d537af1149c85b73d7c4317ed1b0d0b419.tar.gz |
Merge branch 'ab/test-without-templates'
Tweak tests so that they still work when the "git init" template
did not create .git/info directory.
* ab/test-without-templates:
tests: don't assume a .git/info for .git/info/sparse-checkout
tests: don't assume a .git/info for .git/info/exclude
tests: don't assume a .git/info for .git/info/refs
tests: don't assume a .git/info for .git/info/attributes
tests: don't assume a .git/info for .git/info/grafts
tests: don't depend on template-created .git/branches
t0008: don't rely on default ".git/info/exclude"
Diffstat (limited to 't/t5000-tar-tree.sh')
-rwxr-xr-x | t/t5000-tar-tree.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh index 1a68e89a55..eaa0b22ece 100755 --- a/t/t5000-tar-tree.sh +++ b/t/t5000-tar-tree.sh @@ -24,6 +24,7 @@ commit id embedding: ' +TEST_CREATE_REPO_NO_TEMPLATE=1 . ./test-lib.sh SUBSTFORMAT=%H%n @@ -143,6 +144,7 @@ test_expect_success 'populate workdir' ' test_expect_success \ 'add ignored file' \ 'echo ignore me >a/ignored && + mkdir .git/info && echo ignored export-ignore >.git/info/attributes' test_expect_success 'add files to repository' ' @@ -157,7 +159,8 @@ test_expect_success 'setup export-subst' ' ' test_expect_success 'create bare clone' ' - git clone --bare . bare.git && + git clone --template= --bare . bare.git && + mkdir bare.git/info && cp .git/info/attributes bare.git/info/attributes ' |