Last active
October 29, 2015 06:42
-
-
Save kujiy/2e973f3b6cf91f0e8b82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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