{"thread":{"id":"47016","subject":"git describe returns tags including 'refs/tags/","startedAt":"2017-10-24T08:12:59Z","lastAt":"2017-10-24T08:12:59Z","messageCount":1,"participants":["Voie, Per Erlend Torbergsen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"330900","messageId":"DB6PR0202MB28074CB67408334285264588A4470@DB6PR0202MB2807.eurprd02.prod.outlook.com","threadId":"47016","inReplyTo":"DB6PR0202MB2807FB243E7D7A574D555F16A4470@DB6PR0202MB2807.eurprd02.prod.outlook.com","subject":"git describe returns tags including 'refs/tags/","fromName":"Voie, Per Erlend Torbergsen","fromEmail":"per.erlend.voie@dnvgl.com","sentAt":"2017-10-24T08:12:49Z","receivedAt":"2017-10-24T08:12:59Z","isPatch":false,"sender":{"key":"per.erlend.voie@dnvgl.com","avatar":null},"body":"Hi\n\nI am versioning my python package using git tags and the python-versioneer package.\n\nBasically versioneer gets the version number from git tags using the command \"git describe --tags --dirty --always --long --match 'tag_prefix*'\". I do not apply a tag prefix, hence tag_prefix=''.\n\nNow to the problem. My build breaks because the command above returns tags like this \"refs/tags/2.12.2\" which contains invalid characters. Actually, it seems that executing the command above reconfigured the way git describe behaves.\n\nbecause, before running the above command \"git describe --tags --dirty\" returned\n\n2.12.2-17-gd8e62f9\n\nAfter, \"git describe --tags --dirty\" returns\n\nwarning: tag 'refs/tags/2.12.2' is really '2.12.2' here\nrefs/tags/2.12.2-17-gd8e62f9\n\nIs it so that \"git describe --tags --dirty --always --long --match 'tag_prefix*'\" changes the way git describe behave or am I missing something? If it does, how can I reset it?\n\nThanks\nPer\n\n**************************************************************************************\nThis e-mail and any attachments thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments. Unauthorized use, copying or further full or partial distribution of this e-mail or its contents is prohibited.\n**************************************************************************************\n"}]}