use git rev-parse HEAD to fetch commit tag