#!/bin/bash set -e 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"