summaryrefslogtreecommitdiffstats
path: root/t/t1800-hook.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/t1800-hook.sh
parentAdding upstream version 1:2.45.1. (diff)
downloadgit-2f06d8e5901746715dc10f8ec7c024d38e753dbf.tar.xz
git-2f06d8e5901746715dc10f8ec7c024d38e753dbf.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/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 1894ebe..8b0234c 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