From a57092cf4c5c95e30d4d46537bde5fb6428cda34 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Sun, 4 Jan 2026 18:31:08 +0100 Subject: [PATCH] chore(git): remove pre-commit hooks - this slows committing down - it also attaches files to commits where they should not be included which makes history and changed files harder to navigate --- composer.json | 5 ----- hooks/pre-commit | 34 ---------------------------------- 2 files changed, 39 deletions(-) delete mode 100644 hooks/pre-commit diff --git a/composer.json b/composer.json index 1de3a8236..0aeb91958 100644 --- a/composer.json +++ b/composer.json @@ -109,11 +109,6 @@ } }, "scripts": { - "post-install-cmd": [ - "cp -r 'hooks/' '.git/hooks/'", - "php -r \"copy('hooks/pre-commit', '.git/hooks/pre-commit');\"", - "php -r \"chmod('.git/hooks/pre-commit', 0777);\"" - ], "post-update-cmd": [ "@php artisan vendor:publish --tag=laravel-assets --ansi --force", "Illuminate\\Foundation\\ComposerScripts::postUpdate" diff --git a/hooks/pre-commit b/hooks/pre-commit deleted file mode 100644 index fc96e9766..000000000 --- a/hooks/pre-commit +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -# Detect whether /dev/tty is available & functional -if sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then - exec