aboutsummaryrefslogtreecommitdiffstats
path: root/t/t1800-hook.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-05-24 16:58:11 -0700
committerJunio C Hamano <gitster@pobox.com>2024-05-24 16:58:11 -0700
commit3c562ef2e666db76f256e04755983c9037a0c9e5 (patch)
tree28719a195aaf49d50dbe45e4e78b7c6bc37d55fb /t/t1800-hook.sh
parent1f2e64e22dee75db96b92d526d14003ba59a154e (diff)
parent73339e4dc2f00e10b0e86b6a6b275b32e54b1d9c (diff)
downloadgit-3c562ef2e666db76f256e04755983c9037a0c9e5.tar.gz
Merge branch 'fixes/2.45.1/2.42' into fixes/2.45.1/2.43
* fixes/2.45.1/2.42: 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/t1800-hook.sh')
-rwxr-xr-xt/t1800-hook.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/t/t1800-hook.sh b/t/t1800-hook.sh
index 1894ebeb0e..8b0234cf2d 100755
--- a/t/t1800-hook.sh
+++ b/t/t1800-hook.sh
@@ -185,19 +185,4 @@ test_expect_success 'stdin to hooks' '
test_cmp expect actual
'
-test_expect_success 'clone protections' '
- test_config core.hooksPath "$(pwd)/my-hooks" &&
- mkdir -p my-hooks &&
- write_script my-hooks/test-hook <<-\EOF &&
- echo Hook ran $1
- EOF
-
- git hook run test-hook 2>err &&
- test_grep "Hook ran" err &&
- test_must_fail env GIT_CLONE_PROTECTION_ACTIVE=true \
- git hook run test-hook 2>err &&
- test_grep "active .core.hooksPath" err &&
- test_grep ! "Hook ran" err
-'
-
test_done