Skip to content

Commit f09a96e

Browse files
committed
t5619: wrap test_commit_bulk in GIT_DIR subshell for bare repo
To prepare for `safe.bareRepository` defaulting to `explicit` (see 8d1a744), 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>
1 parent c8789bd commit f09a96e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5619-clone-local-ambiguous-transport.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test_expect_success 'setup' '
2121
echo "secret" >sensitive/secret &&
2222
2323
git init --bare "$REPO" &&
24-
test_commit_bulk -C "$REPO" --ref=main 1 &&
24+
(GIT_DIR="$REPO" && export GIT_DIR && test_commit_bulk --ref=main 1) &&
2525
2626
git -C "$REPO" update-ref HEAD main &&
2727
git -C "$REPO" update-server-info &&

0 commit comments

Comments
 (0)