aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2024-12-10 19:39:22 -0500
committerAnthony Wang2024-12-10 19:39:22 -0500
commitac14a6bb8fd7096c293f4945158deb16ca420b4a (patch)
tree7a3742f20071913214b861601703bfaf567b765b
parent871d5ea60a97ece9ec4fba2e4824f37da2f78a5b (diff)
Reapply fix to GIT_DIR problem for autodeploy
-rw-r--r--post-receive5
1 files changed, 5 insertions, 0 deletions
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