aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2024-12-10 20:22:53 -0500
committerAnthony Wang2024-12-10 20:22:53 -0500
commitedc6017f36b783882fd02c44cc778e347ee883bf (patch)
treefc242499f5dbe5aedd9c54d6663430d738392d0c
parentdcfc4b9ea2097c22d4aad34d33fa4f633e229a42 (diff)
Don't hardcode worktree location
-rw-r--r--post-receive2
1 files changed, 1 insertions, 1 deletions
diff --git a/post-receive b/post-receive
index d74422d..fcc9eeb 100644
--- a/post-receive
+++ b/post-receive
@@ -9,7 +9,7 @@ fi
unset GIT_DIR
# Update worktree
-cd ~/Code/website
+cd $(git worktree list | grep main | cut -d' ' -f1)
git submodule update
# Manually copy static since btrfs COW is super fast