pzimediadesign/post-receive-hook

11 lines
279 B
Bash

#!/bin/sh
git_work_tree_path=/var/www/mmdc-site
GIT_WORK_TREE=$git_work_tree_path git checkout -f
commitname=`git log -n 1 --pretty=format:%cn`
commitdate=`git log -n 1 --pretty=format:%cd`
# runs script that converts md to website
python $git_work_tree_path/mmdc_wiki2web.py