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
This commit is contained in:
@ -5,6 +5,7 @@ test_description='Test the core.hooksPath configuration variable'
|
|||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
test_expect_success 'set up a pre-commit hook in core.hooksPath' '
|
test_expect_success 'set up a pre-commit hook in core.hooksPath' '
|
||||||
|
>actual &&
|
||||||
mkdir -p .git/custom-hooks .git/hooks &&
|
mkdir -p .git/custom-hooks .git/hooks &&
|
||||||
write_script .git/custom-hooks/pre-commit <<-\EOF &&
|
write_script .git/custom-hooks/pre-commit <<-\EOF &&
|
||||||
echo CUSTOM >>actual
|
echo CUSTOM >>actual
|
||||||
|
|||||||
Reference in New Issue
Block a user