town-wiki/wiki-githooks/post-receive

8 lines
98 B
Bash
Executable File

#!/bin/bash
umask 002
unset GIT_DIR
cd /wiki
git reset --hard HEAD
git log -1 > git-last-log.txt