threads / discuss / 33108

question re tags

Subject: question re tags

## tl;dr

2 messages between Mar 8, 2013 and Mar 8, 2013.

replies: 1people: 2as markdown or json

John Stean· Mar 8, 2013, 15:16 UTC · lore

Ive been tagging some commits using tortoise git , for example with "v1.0", "v1.1" etc. In tortoise git log the tag sits alongside the commit as I expect. But when I do a git describe it outputs the first tag along with the latest commit. What am I doing wrong?

Carlos Martín Nieto· Mar 8, 2013, 16:30 UTC · re: John Stean · lore

Re: question re tags

On Fri, 2013-03-08 at 15:16 +0000, John Stean wrote:
Show 5 quoted lines
> Ive been tagging some commits using tortoise git , for example with
> "v1.0", "v1.1" etc. In tortoise git log the tag sits alongside the
> commit as I expect.
> But when I do a git describe it outputs the first tag along with the
> latest commit. What am I doing wrong?

Those tags are probably lightweight tags, so by default git-describe doesn't take them into account. You can pass the --tags flag to tell it to consider lightweight tags as well.

   cmn

← back to recent threads