From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathias Lafeldt Subject: Re: Annoated tag not found on git describe Date: Wed, 27 Oct 2010 21:24:17 +0200 Message-ID: <4CC87C61.9060806@debugon.org> References: <4CC86D42.20008@debugon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: git@vger.kernel.org To: Jan Engelhardt X-From: git-owner@vger.kernel.org Wed Oct 27 21:24:42 2010 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PBBbx-0002Xc-PF for gcvg-git-2@lo.gmane.org; Wed, 27 Oct 2010 21:24:38 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756156Ab0J0TYZ (ORCPT ); Wed, 27 Oct 2010 15:24:25 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:50222 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756141Ab0J0TYW (ORCPT ); Wed, 27 Oct 2010 15:24:22 -0400 Received: from [192.168.2.2] (p54B97A58.dip.t-dialin.net [84.185.122.88]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MV0jR-1P5pSz1HTx-00Z1Km; Wed, 27 Oct 2010 21:24:20 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.14) Gecko/20101006 Thunderbird/3.0.9 In-Reply-To: <4CC86D42.20008@debugon.org> X-Provags-ID: V02:K0:bIqZ7gx7m6cFkP4lNMkyZ4uJGzP4aLJ8/AU0/+zHFfc VmYmUz5tc260Ovukq1pHjGzMZOD+o8mS6/qOSufUSctK1UhQG8 3ASGdCh789w6MXFzi98/m40k4PpNejWFvhRD14n58Xiaql21Wd 4UtYo69achammNbm38pCoL1ei+cqz4OoGZTUHL0HglyJEok8Os xo1vlp2WS7MljmYPWwIIF+Gk74qfy6EyomPL7k8400= Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On 10/27/2010 08:19 PM, Mathias Lafeldt wrote: > 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 1287508632 +0200 >> >> This is man-pages-3.29 >> >> commit 80786722b116f5002c28e9e0200044f825b236f6 >> tree 65ca9b696771fba53902a1342dc982066c9467e0 >> parent 435070082d2694737825491cc47973626f352645 >> author Michael Kerrisk 1287508632 +0200 >> committer Michael Kerrisk 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