mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-10 16:54:08 -05:00
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:
committed by
Junio C Hamano
parent
5513fb51b7
commit
4dceee1c8c
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user