From 689b4f4a706746f481555b9a64ff20b33b8e5a75 Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sun, 1 Nov 2026 09:07:19 +0900 Subject: git: studio-slots のフックで作業ディレクトリの所有者を戻す MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- git/hooks/studio-slots/post-receive | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'git/hooks') diff --git a/git/hooks/studio-slots/post-receive b/git/hooks/studio-slots/post-receive index 71cc5fe..15bcf9b 100755 --- a/git/hooks/studio-slots/post-receive +++ b/git/hooks/studio-slots/post-receive @@ -1,4 +1,7 @@ #!/bin/bash set -e -GIT_WORK_TREE=/home/yyamashita/workspaces/repos/studio-slots git checkout -f +WORK_TREE=/home/yyamashita/workspaces/repos/studio-slots +GIT_WORK_TREE=$WORK_TREE git checkout -f +# フックは root で動くので、作業ディレクトリの所有者を戻す +chown -R yyamashita:yyamashita "$WORK_TREE" echo "Deploy complete: studio-slots" -- cgit v1.3