jenkinsci/git-plugin — pull request #50 by GregBowyer (2011-12-12 22:38:59+00:00)
Title: Small change to make annotated tags more obvious

Hi all, in our build environment we have noticed that annotated tags are only being dereferenced to the tags own object.

Since we have a fair few things that depend on jenkins git revisions, this causes us confusion as our artefacts get named for the tag object rather than the commit the tag ultimately points to.

This pull changes the rev-parse to be aware that it might be attempting to find the revision for a tag, and, as such tells git to follow that revision until it finds a real commit.