1
0
Fork 0
scripts-admin-quickndirty-p.../hooks-git/website-cracra/post-receive

11 lines
245 B
Bash
Executable file

#!/bin/sh
# Stop on the first error
set -ex
export GIT_WORK_TREE=$GIT_DIR/..
# Theoretically, everything has been checked in the pre-receive hook
# and no local modification should go missing (at worst, there's the
# reflog)
git reset --hard