summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-07-08 13:15:00 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-07-08 13:15:01 -0700
commit5be2a2c74bb4d4f4a45c5935c40f822bcdb246d7 (patch)
treeda3b026779a596b3429ea7b7784a60759f280799 /t
parentMerge branch 'fc/pull-cleanups' (diff)
parentpre-commit hook tests: don't leave "actual" nonexisting on failure (diff)
downloadtgif-5be2a2c74bb4d4f4a45c5935c40f822bcdb246d7.tar.xz
Merge branch 'ab/config-hooks-path-testfix'
Test fix. * ab/config-hooks-path-testfix: pre-commit hook tests: don't leave "actual" nonexisting on failure
Diffstat (limited to 't')
-rwxr-xr-xt/t1350-config-hooks-path.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t1350-config-hooks-path.sh b/t/t1350-config-hooks-path.sh
index f1f9aee9f5..fa9647a7c0 100755
--- a/t/t1350-config-hooks-path.sh
+++ b/t/t1350-config-hooks-path.sh
@@ -5,6 +5,7 @@ test_description='Test the core.hooksPath configuration variable'
. ./test-lib.sh
test_expect_success 'set up a pre-commit hook in core.hooksPath' '
+ >actual &&
mkdir -p .git/custom-hooks .git/hooks &&
write_script .git/custom-hooks/pre-commit <<-\EOF &&
echo CUSTOM >>actual