{"thread":{"id":"51930","subject":"Git describe shows old tag","startedAt":"2019-09-26T20:46:27Z","lastAt":"2019-09-26T20:46:27Z","messageCount":1,"participants":["dirtbikersteve ."],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"383026","messageId":"CAN-=hvFX+tN_pQHPBxo0pA90N03dO7pxHVbD79Es22mx30TdxQ@mail.gmail.com","threadId":"51930","inReplyTo":null,"subject":"Git describe shows old tag","fromName":"dirtbikersteve .","fromEmail":"stevemk14ebr@gmail.com","sentAt":"2019-09-26T20:46:13Z","receivedAt":"2019-09-26T20:46:27Z","isPatch":false,"sender":{"key":"stevemk14ebr@gmail.com","avatar":null},"body":"I believe there is a bug in git describe. When using the command `git\ndescribe –tags` an old tag version was returned. The repo had a\nlightweight tag at v0.6.1, which was correctly shown by `git tag` but\ndid not get returned by `git describe –tags` OR `git describe –all`.\nThe command `git for-each-ref --format=\"%(refname:short)\"\n--sort=-authordate --count=1 refs/tags` worked correctly. Console\nlogs:\n\nλ git tag\nv0.1.0\nv0.1.1\nv0.1.10\nv0.1.11\nv0.1.12\nv0.1.13\nv0.1.14\nv0.1.15\nv0.1.16\nv0.1.17\nv0.1.18\nv0.1.2\nv0.1.3\nv0.1.4\nv0.1.5\nv0.1.6\nv0.1.7\nv0.1.8\nv0.1.9\nv0.2.0\nv0.2.1\nv0.2.2\nv0.2.3\nv0.2.4\nv0.2.5\nv0.2.7\nv0.2.8\nv0.2.9\nv0.3.0\nv0.3.1\nv0.3.2\nv0.3.3\nv0.3.4\nv0.4.0\nv0.4.1\nv0.4.9\nv0.5.0\nv0.5.1\nv0.5.10\nv0.5.11\nv0.5.12\nv0.5.13\nv0.5.14\nv0.5.15\nv0.5.16\nv0.5.17\nv0.5.18\nv0.5.19\nv0.5.2\nv0.5.20\nv0.5.21\nv0.5.3\nv0.5.4\nv0.5.5\nv0.5.6\nv0.5.7\nv0.5.8\nv0.5.9\nv0.6\nv0.6.1\n\nλ git describe --all\ntags/v0.5.20\n\nλ git describe --all --debug\ndescribe HEAD\ntags/v0.5.20\n\nλ git describe --all --debug\ndescribe HEAD\ntags/v0.5.20\n\nλ git for-each-ref --format=\"%(refname:short)\" --sort=-authordate\n--count=1 refs/tags\nv0.6.1\n\n-Stephen Eckels\n"}]}