t5619: wrap test_commit_bulk in GIT_DIR subshell for bare repo

To prepare for `safe.bareRepository` defaulting to `explicit` (see
8d1a744820), wrap the `test_commit_bulk` call in `(GIT_DIR="$REPO" &&
export GIT_DIR && test_commit_bulk ...)` because `test_commit_bulk -C`
relies on implicit discovery which would fail once the default changes.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Johannes Schindelin
2026-04-02 14:33:19 +00:00
committed by Junio C Hamano
parent 5513fb51b7
commit 4dceee1c8c

View File

@@ -21,7 +21,7 @@ test_expect_success 'setup' '
echo "secret" >sensitive/secret &&
git init --bare "$REPO" &&
test_commit_bulk -C "$REPO" --ref=main 1 &&
(GIT_DIR="$REPO" && export GIT_DIR && test_commit_bulk --ref=main 1) &&
git -C "$REPO" update-ref HEAD main &&
git -C "$REPO" update-server-info &&