tests: Use git worktree correctly

git worktree -d does not work on all versions of git worktree
pull/2117/head
Noah Gorny 2022-03-08 20:28:01 +02:00
parent a6fd93076d
commit 31d1a00707
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ function common_setup_file() {
BASH_IT="${BATS_FILE_TMPDIR//\/\///}/.bash_it"
# This sets up a local test fixture, i.e. a completely fresh and isolated Bash-it directory. This is done to avoid messing with your own Bash-it source directory.
git --git-dir="${MAIN_BASH_IT_GITDIR?}" worktree add -d "${BASH_IT}"
git --git-dir="${MAIN_BASH_IT_GITDIR?}" worktree add --detach "${BASH_IT}"
load "${BASH_IT?}/vendor/github.com/erichs/composure/composure.sh"
# support 'plumbing' metadata