web-site-public-php/git-post-receive-hook.sh
2024-05-04 15:04:02 -04:00

3 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