web-site-public-php/git-post-receive-hook.sh

4 lines
138 B
Bash

#!/bin/sh
echo "Updating log_cache..."
git log --no-merges --pretty='format:%at %s' | head -n 20 >/var/www/localhost/htdocs/sys/log_cache