diff options
author | Anthony Wang | 2024-12-10 20:22:53 -0500 |
---|---|---|
committer | Anthony Wang | 2024-12-10 20:22:53 -0500 |
commit | edc6017f36b783882fd02c44cc778e347ee883bf (patch) | |
tree | fc242499f5dbe5aedd9c54d6663430d738392d0c | |
parent | dcfc4b9ea2097c22d4aad34d33fa4f633e229a42 (diff) |
Don't hardcode worktree location
-rw-r--r-- | post-receive | 2 |
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 |