From 31d1a007074927d18b541036d171bcfa448cec7b Mon Sep 17 00:00:00 2001 From: Noah Gorny Date: Tue, 8 Mar 2022 20:28:01 +0200 Subject: [PATCH] tests: Use git worktree correctly git worktree -d does not work on all versions of git worktree --- test/test_helper.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper.bash b/test/test_helper.bash index bffb59ed..e6657965 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -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