I\'m using git 1.7.1 on Ubuntu 10.10 amd64, and I\'m trying to extract the hash of my repository HEAD to use it in an automated version information that I compile into my pr
I had the similar issue while working on a CI job, the issue was git clone or checkout scm used did not fetch tags while cloning the repo.
Fetching without tags Fetching upstream changes from https://github.**********
You can enable fetch tags by selecting "Advanced clone behaviours" and then clicking on fetch tags ..