aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2024-12-11 11:47:58 -0500
committerAnthony Wang2024-12-11 11:47:58 -0500
commitbb3ab3b4d092f417354ee08c51418e30ecd80840 (patch)
tree8c628d1640b82407b7eb0019c38bea22706f6264
parent9c1cf011f78cc37ea7c88ab9edb9ebb6d7313058 (diff)
Fix default branch name for autodeploy
-rw-r--r--post-receive4
1 files changed, 1 insertions, 3 deletions
diff --git a/post-receive b/post-receive
index fcc9eeb..15f816f 100644
--- a/post-receive
+++ b/post-receive
@@ -7,9 +7,7 @@ fi
# remote: fatal: not a git repository: '.'
# https://git-scm.com/docs/githooks#_description
unset GIT_DIR
-
-# Update worktree
-cd $(git worktree list | grep main | cut -d' ' -f1)
+cd $(git worktree list | grep master | cut -d' ' -f1)
git submodule update
# Manually copy static since btrfs COW is super fast