add getting head revision script