summaryrefslogtreecommitdiff
path: root/git/hooks/studio-slots/post-receive
blob: 15bcf9be8b813fd0f6fa7fe7619658628dc22630 (plain)
1
2
3
4
5
6
7
#!/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"