aboutsummaryrefslogtreecommitdiffstats
path: root/t/t1350-config-hooks-path.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-05-30 16:58:12 -0700
committerJunio C Hamano <gitster@pobox.com>2024-05-30 16:58:12 -0700
commitf20b96a7982915b080f556430a2a5d4ce805adb7 (patch)
tree9da0e1a36964e4ee5ccdfd93a16d19ade7d32d85 /t/t1350-config-hooks-path.sh
parentGit 2.41.1 (diff)
parentMerge branch 'fixes/2.45.1/2.40' into fixes/2.45.1/2.41 (diff)
downloadgit-f20b96a7982915b080f556430a2a5d4ce805adb7.tar.gz
git-f20b96a7982915b080f556430a2a5d4ce805adb7.zip
Merge branch 'fixes/2.45.1/2.41' into maint-2.41
* fixes/2.45.1/2.41: Revert "fsck: warn about symlink pointing inside a gitdir" Revert "Add a helper function to compare file contents" clone: drop the protections where hooks aren't run tests: verify that `clone -c core.hooksPath=/dev/null` works again Revert "core.hooksPath: add some protection while cloning" init: use the correct path of the templates directory again hook: plug a new memory leak ci: stop installing "gcc-13" for osx-gcc ci: avoid bare "gcc" for osx-gcc job ci: drop mention of BREW_INSTALL_PACKAGES variable send-email: avoid creating more than one Term::ReadLine object send-email: drop FakeTerm hack
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 f6dc83e2aa..45a0492917 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