aboutsummaryrefslogtreecommitdiff
path: root/post-receive
diff options
context:
space:
mode:
Diffstat (limited to 'post-receive')
-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