From a3bfe847cf9d8fb4acbe5bcc16e2222e91eb3424 Mon Sep 17 00:00:00 2001 From: carlfriedrich Date: Mon, 7 Sep 2026 14:31:20 +0200 Subject: [PATCH] test: fix worktree tests for MacOS Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- tests/worktree.test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/worktree.test.sh b/tests/worktree.test.sh index 654dbb1..57cc451 100644 --- a/tests/worktree.test.sh +++ b/tests/worktree.test.sh @@ -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"