Improves the error message when the latest tag does not match the tag for current ref
When deploying RC builds we were seeing this error message:
fatal: no tag exactly matches '697fe26e6a38b2423560ada28f656c43809a181c'
12.10.0+rc20200415152739.ee.0 is not the latest tag, not doing anything.
-
12.10.0+rc20200415152739.ee.0
refers to the latest tag, not the current tag. -
fatal: no tag exactly matches '697fe26e6a38b2423560ada28f656c43809a181c'
is shown on stderr because of the--match
option ongit describe --exact-match --match "12.10.0+rc20200415152739.ee.0"
this makes the log a bit clearer, which will tell you exactly what tag we are on, and what it is comparing it to.