From edc6017f36b783882fd02c44cc778e347ee883bf Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Tue, 10 Dec 2024 20:22:53 -0500 Subject: Don't hardcode worktree location --- post-receive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2