Suggestion:
#!/bin/sh
echo
echo "*** Moving to Live ***"
echo
cd /path/to/project || exit
unset GIT_DIR
git pull origin master
echo
echo "*** Pulling to Live ***"
echo
/etc/init.d/nginx restart
#exec git-update-server-info
Took from my server and works well for me.
Don't forget to fix the path, the remote and the restart command.