mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-09 23:06:25 -04:00
test: fix worktree tests for MacOS
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
77ce6db8b4
commit
a3bfe847cf
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue