hook last commit into the script.