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

4 lines
138 B
Bash
Raw Normal View History

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