summaryrefslogtreecommitdiffstats
path: root/t/t1350-config-hooks-path.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 09:21:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 09:21:27 +0000
commit2f06d8e5901746715dc10f8ec7c024d38e753dbf (patch)
tree735c87fa9dab6b6342621f7f6633c8dede32a391 /t/t1350-config-hooks-path.sh
parentAdding upstream version 1:2.45.1. (diff)
downloadgit-upstream/1%2.45.2.tar.xz
git-upstream/1%2.45.2.zip
Adding upstream version 1:2.45.2.upstream/1%2.45.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/t1350-config-hooks-path.sh')
-rwxr-xr-xt/t1350-config-hooks-path.sh7
1 files changed, 7 insertions, 0 deletions
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