test: fix worktree tests for MacOS

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
carlfriedrich 2026-09-07 14:31:20 +02:00
parent 4f884bd9bd
commit 2904744fc2

View file

@ -10,7 +10,7 @@ function set_up_before_script() {
unset FORGIT_WORKTREE_ADD_DIR
# Create a temporary git repository for testing
MAIN_WORKTREE_ROOT="$(bashunit::temp_dir)/main"
MAIN_WORKTREE_ROOT="$(cd -P -- "$(bashunit::temp_dir)" && pwd)/main"
git init -q "$MAIN_WORKTREE_ROOT"
cd "$MAIN_WORKTREE_ROOT" || return 1
git config user.email "test@example.com"