]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5601-clone.sh
Sync with 2.35.5
[thirdparty/git.git] / t / t5601-clone.sh
index 20aef0018c2d1d1059096833121c9c2e7838ef1d..16edbcb900b33962f952a5016df2ce5a21e55c17 100755 (executable)
@@ -79,12 +79,10 @@ test_expect_success 'clone from hooks' '
        cd .. &&
        git init r1 &&
        cd r1 &&
-       cat >.git/hooks/pre-commit <<-\EOF &&
-       #!/bin/sh
+       test_hook pre-commit <<-\EOF &&
        git clone ../r0 ../r2
        exit 1
        EOF
-       chmod u+x .git/hooks/pre-commit &&
        : >file &&
        git add file &&
        test_must_fail git commit -m invoke-hook &&