git pre-receive check astyle

#!/bin/sh
#
# This hook is invoked by git-receive-pack on the remote repository, which 
# happens when a git push is done on a local repository. Just before starting 
# to update refs on the remote repository, the pre-receive hook is invoked. Its 
# exit status determines the success or failure of the update.  It is passed 
# arguments in through stdin in the form
#
#  <oldrev> <newrev> <refname>
#
# For example:
#  aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master