From be78e65b111ac7e2518384e6eb75971b2b1785e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 24 Aug 2023 16:26:03 +0200 Subject: [PATCH] pre-commit: allow treefmt cache cache should work now and speeds up things --- scripts/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pre-commit b/scripts/pre-commit index 5760641..1590d56 100755 --- a/scripts/pre-commit +++ b/scripts/pre-commit @@ -46,7 +46,7 @@ git stash push --quiet --keep-index --message "treefmt pre-commit" trap restore_stash EXIT # Run treefmt on the files in the index and record the result. -nix fmt -- --no-cache "${commit_files[@]}" +nix fmt -- "${commit_files[@]}" # Check if there is a diff git diff --name-only --exit-code