From 11852479a8e2994cee4476108d5adde96b56afad Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Tue, 10 Dec 2024 19:36:00 -0500 Subject: Use Git worktree for autodeploy --- post-receive | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/post-receive b/post-receive index 1e86a78..0da0bf7 100644 --- a/post-receive +++ b/post-receive @@ -3,13 +3,8 @@ if [[ -v GIT_PUSH_OPTION_0 ]]; then exit fi -# Solution to -# remote: fatal: not a git repository: '.' -unset GIT_DIR - -# Update local clone -cd /var/lib/forgejo/website -git pull +# Update worktree +cd ~/Code/website git submodule update # Manually copy static since btrfs COW is super fast -- cgit v1.2.3-70-g09d2