From 1d5ce7d0ba3b193b62433271fbcee815257d0db4 Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Mon, 25 Dec 2023 16:02:34 +1100 Subject: [PATCH] fix: git hook to check for large files on commit, instead of push --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24d4fab2..adae71d9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -108,6 +108,8 @@ repos: - id: check-case-conflict - id: check-merge-conflict - id: check-added-large-files + stages: [commit] + args: [--maxkb=500] - id: debug-statements - id: end-of-file-fixer stages: [commit]