Skip to content

Instantly share code, notes, and snippets.

@kujiy
Last active October 29, 2015 06:42
Show Gist options
  • Save kujiy/2e973f3b6cf91f0e8b82 to your computer and use it in GitHub Desktop.
Save kujiy/2e973f3b6cf91f0e8b82 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "---------------------start post-receive : `date`" >> ~/kuji.log
while read oldrev newrev ref
do
branch=`echo $ref | sed 's/refs\/heads\///'`
echo $ref >> ~/kuji.log
done
echo $branch >> ~/kuji.log
`git push origin --all --force` >> ~/kuji.log
git log -1 --stat HEAD >> ~/kuji.log
echo "end post-receive" >> ~/kuji.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment