Skip to content

Commit

Permalink
Skip Git worktree tests where it is not available 💛
Browse files Browse the repository at this point in the history
  • Loading branch information
rycus86 committed Mar 1, 2019
1 parent 04800a8 commit 8964d0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/step-098.sh
Expand Up @@ -9,6 +9,11 @@ mkdir -p /tmp/test098/.git/hooks &&
git config githooks.autoupdate.enabled N ||
exit 1

if ! git worktree list >/dev/null 2>/dev/null; then
echo "Git worktree support is missing"
exit 249
fi

# shellcheck disable=SC2016
mkdir -p .githooks/pre-commit &&
echo 'echo p:${PWD} > /tmp/test098.out' >.githooks/pre-commit/test &&
Expand Down
5 changes: 5 additions & 0 deletions tests/step-099.sh
Expand Up @@ -9,6 +9,11 @@ mkdir -p /tmp/test099/.git/hooks &&
git config githooks.autoupdate.enabled N ||
exit 1

if ! git worktree list >/dev/null 2>/dev/null; then
echo "Git worktree support is missing"
exit 249
fi

# shellcheck disable=SC2016
mkdir -p .githooks/pre-commit &&
echo 'echo p:${PWD} > /tmp/test099.out' >.githooks/pre-commit/example &&
Expand Down

0 comments on commit 8964d0f

Please sign in to comment.