From f92b5815050163c7c12e115e4ec9f2e21f0faa8e Mon Sep 17 00:00:00 2001 From: Laurynas Keturakis Date: Fri, 17 Apr 2026 13:44:44 +0200 Subject: [PATCH] fix(hooks): unset GIT_DIR in pre-push so integration tests don't inherit it --- hooks/pre-push | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hooks/pre-push b/hooks/pre-push index 43ab103..494b211 100755 --- a/hooks/pre-push +++ b/hooks/pre-push @@ -1,6 +1,10 @@ #!/bin/sh set -e +# git sets GIT_DIR when invoking hooks; unset it so integration tests that +# spawn `git` inside temp repos don't accidentally operate on this repo's .git. +unset GIT_DIR + echo "pre-push: building drift..." zig build -Doptimize=ReleaseSafe