From 9aa26a8f9d0ef8bd948b1d22be8fd8ad0a870627 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 17 Jun 2024 11:21:27 +0200 Subject: Merging upstream version 1:2.45.2. Signed-off-by: Daniel Baumann --- t/t1350-config-hooks-path.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 't/t1350-config-hooks-path.sh') diff --git a/t/t1350-config-hooks-path.sh b/t/t1350-config-hooks-path.sh index f6dc83e..45a0492 100755 --- a/t/t1350-config-hooks-path.sh +++ b/t/t1350-config-hooks-path.sh @@ -41,4 +41,11 @@ test_expect_success 'git rev-parse --git-path hooks' ' test .git/custom-hooks/abc = "$(cat actual)" ' +test_expect_success 'core.hooksPath=/dev/null' ' + git clone -c core.hooksPath=/dev/null . no-templates && + value="$(git -C no-templates config --local core.hooksPath)" && + # The Bash used by Git for Windows rewrites `/dev/null` to `nul` + { test /dev/null = "$value" || test nul = "$value"; } +' + test_done -- cgit v1.2.3