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/t5550-http-fetch-dumb.sh | |
| parent | Merge branch 'ab/build-gitweb' (diff) | |
| parent | tests: don't assume a .git/info for .git/info/sparse-checkout (diff) | |
| download | git-3d3874d537af1149c85b73d7c4317ed1b0d0b419.tar.gz git-3d3874d537af1149c85b73d7c4317ed1b0d0b419.zip | |
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/t5550-http-fetch-dumb.sh')
| -rwxr-xr-x | t/t5550-http-fetch-dumb.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t5550-http-fetch-dumb.sh b/t/t5550-http-fetch-dumb.sh index f0d9cd584d..3ca621f33b 100755 --- a/t/t5550-http-fetch-dumb.sh +++ b/t/t5550-http-fetch-dumb.sh @@ -422,7 +422,8 @@ test_expect_success 'set up evil alternates scheme' ' sha1=$(git -C "$victim" rev-parse HEAD) && evil=$HTTPD_DOCUMENT_ROOT_PATH/evil.git && - git init --bare "$evil" && + git init --template= --bare "$evil" && + mkdir "$evil/info" && # do this by hand to avoid object existence check printf "%s\\t%s\\n" $sha1 refs/heads/main >"$evil/info/refs" ' |
