From fac456ce11be508754f36a10981f174fd58466cb Mon Sep 17 00:00:00 2001 From: Peter Grayson Date: Fri, 23 Apr 2021 18:03:25 -0400 Subject: [PATCH] Quote HOOKDIR in t2703-refresh-pre-commit-hook.sh Signed-off-by: Peter Grayson --- t/t2703-refresh-pre-commit-hook.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t2703-refresh-pre-commit-hook.sh b/t/t2703-refresh-pre-commit-hook.sh index 488a468..3d60c55 100755 --- a/t/t2703-refresh-pre-commit-hook.sh +++ b/t/t2703-refresh-pre-commit-hook.sh @@ -41,12 +41,12 @@ test_expect_success 'refresh with path limiting, succeeding hook' ' ' git config core.hooksPath .my-hooks -mv $HOOKDIR .my-hooks +mv "$HOOKDIR" .my-hooks test_expect_success 'refresh with core.hooksPath' ' echo "pre-commit-hook-path-limiting-success" >> file && stg refresh file ' -mv .my-hooks $HOOKDIR +mv .my-hooks "$HOOKDIR" git config --unset core.hooksPath # now a hook that fails -- 2.11.4.GIT