Re: git describe relative to a given tag pattern
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 6, 2012, 22:10 UTC
- Message-ID
- <7vhaz362b8.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CA+mfgz0VB9qMHHtoT76zCOiUaH=8egdMDrneQVRBug2waQsGAg@mail.gmail.com>
Adam Mercer <ramercer@gmail.com> writes:
> $ git describe --match=lal-v* HEAD > fatal: No tags can describe 'cee13cbb25d0fa38f6e3bc6622bc751ebf35d2f0'.
Perhaps Git is correct and your HEAD is not a descendant of any tag whose name matches the pattern "lal-v*".
Here is how people can mimic the situation:
$ git checkout v1.7.6~20
$ git describe --match='v1.7.*' HEAD
v1.7.6-rc0-3-g6c92972
$ git describe --match='v1.7.[7-9]*' HEAD
fatal: No tags can describe '6c92972d7f5ab247a8cab5e4b88cb281bf201970'.
Try --always, or create some tags.