From ac14a6bb8fd7096c293f4945158deb16ca420b4a Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Tue, 10 Dec 2024 19:39:22 -0500 Subject: Reapply fix to GIT_DIR problem for autodeploy --- post-receive | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/post-receive b/post-receive index 0da0bf7..d74422d 100644 --- a/post-receive +++ b/post-receive @@ -3,6 +3,11 @@ if [[ -v GIT_PUSH_OPTION_0 ]]; then exit fi +# Solution to +# remote: fatal: not a git repository: '.' +# https://git-scm.com/docs/githooks#_description +unset GIT_DIR + # Update worktree cd ~/Code/website git submodule update -- cgit v1.2.3-70-g09d2