summaryrefslogtreecommitdiff
path: root/git-deploy-hook.sh
blob: 104b69d43c3979b71d1e8bb27cf9baf05d982bff (plain) (blame)
1
2
3
4
5
#!/bin/sh
# Put this in repo/hooks/post-receive
DSTDIR="/tmp/changeme"
git --work-tree="${DSTDIR}" clean -fd
git --work-tree="${DSTDIR}" checkout --force