From: Junio C Hamano Date: Mon, 06 Feb 2012 22:10:19 GMT Subject: Re: git describe relative to a given tag pattern Message-ID: <7vhaz362b8.fsf@alter.siamese.dyndns.org> In-Reply-To: Adam Mercer 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.