Re: Annoated tag not found on git describe
- From
Mathias Lafeldt <misfire@debugon.org>
- Date
- Oct 27, 2010, 19:24 UTC
- Message-ID
- <4CC87C61.9060806@debugon.org>
- In-Reply-To
- <4CC86D42.20008@debugon.org>
On 10/27/2010 08:19 PM, Mathias Lafeldt wrote:
Show 53 quoted lines
> On 10/27/2010 08:00 PM, Jan Engelhardt wrote: >> Hi, >> >> >> in the linux-manpages repository at >> git://git.kernel.org/pub/scm/docs/man-pages/man-pages , running git >> describe on the current HEAD (8482c7b836) produces >> >> fatal: No annotated tags can describe >> '8482c7b836a66f874e7dfea9c35fee4a82ad817b'. >> However, there were unannotated tags: try --tags. >> >> Which seems strange, given there is an annotated tag: >> >> (.git/refs/packed-refs) >> 45aba08f23aea4baf9ff5603cb5ec4ce148be2cc refs/tags/man-pages-3.29 >> ^80786722b116f5002c28e9e0200044f825b236f6 >> >> ==> >> object 80786722b116f5002c28e9e0200044f825b236f6 >> type commit >> tag man-pages-3.29 >> tagger Michael Kerrisk <mtk.manpages@gmail.com> 1287508632 +0200 >> >> This is man-pages-3.29 >> >> commit 80786722b116f5002c28e9e0200044f825b236f6 >> tree 65ca9b696771fba53902a1342dc982066c9467e0 >> parent 435070082d2694737825491cc47973626f352645 >> author Michael Kerrisk <mtk.manpages@gmail.com> 1287508632 +0200 >> committer Michael Kerrisk <mtk.manpages@gmail.com> 1287508632 +0200 >> >> Ready for 3.29 >> >> >> >> So what caused git 1.7.1 to get confused here? >> >> >> thanks, >> Jan > > Hi, > > must have been fixed in a later version, as it works for me: > > $ git describe > man-pages-3.29-49-g8409222 > > $ git --version > git version 1.7.3.2 > > -Mathias
Forget about my first answer.
git-describe shows the most recent tag that is reachable from a commit, but 80786722b116f5002c28e9e0200044f825b236f6 isn't reachable when your HEAD is at 8482c7b836a66f874e7dfea9c35fee4a82ad817b.
As git says, there's only an unannotated tag:
$ git describe fatal: No annotated tags can describe '8482c7b836a66f874e7dfea9c35fee4a82ad817b'. However, there were unannotated tags: try --tags.
$ git describe --tags man-pages-2.25-30-g8482c7b
-Mathias