Web lists-archives.com

Fw: git describe issue





Hi!

I've found strange behavior with 'git describe' command, look like for me as bug. 

In the case I create 2 tags on same commit and I run 'git describe --tags' I expect to get the latest tag, but always I get the first tag I created on the commit.

Unlike git-describe documentations - "The command finds the most recent tag that is reachable from a commit. "

Simple example -   



amiel@CLINIKALDEV10:~/Xpress$ git tag v1
amiel@CLINIKALDEV10:~/Xpress$ git tag v2
amiel@CLINIKALDEV10:~/Xpress$ git describe --tags
v1
amiel@CLINIKALDEV10:~/Xpress$ gl
* 4f54749 (HEAD -> master, tag: v2, tag: v1, origin/master, origin/HEAD) start point with git



I'll happy to know if is bug or I don't understand something.


Thanks


Amiel