From c2d9c8f7801e77f124cc55e4a58073aa6bb34e01 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Wed, 4 Mar 2026 02:03:14 -0800 Subject: make git hooks not abortable --- .pre-commit-config.yaml | 2 +- flake.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c5a7148..efa234d 120000 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1 +1 @@ -/nix/store/zyphyg5s4sanpijx3gw1ynhaylmxg6db-pre-commit-config.json \ No newline at end of file +/nix/store/3zlzc1hmcmwcr9kb14pqsdpg32y8384q-pre-commit-config.json \ No newline at end of file diff --git a/flake.nix b/flake.nix index 4041f7a..1b88f90 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,7 @@ description = "Ensure website can build, and tests links"; stages = [ "post-merge" ]; entry = "${pkgs.writeShellScript "website-check" '' +trap 'echo "Interrupted!"; exit 1' INT BRANCH=$(git branch --show-current) if [ "$BRANCH" != "main" ]; then exit 0 -- cgit v1.3