Expand release-information to include git tags by sarakthon · Pull Request #26 · cfengine/cfengine-cli
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The purpose of using git show-ref --tags was to eliminate these unnecessary subprocesses, I made a mistake when showing you the command, this is the correct version of it;
With that command, you get all the information you need in just 1 process instead of having to call git log again and again;
bac5b9cd69d91179eca01f2af9ebae16a4eb29d7 refs/tags/3.27.0
4c3834d679d5f03adc8a853f8481680ade44dd5a refs/tags/3.27.0^{}
The lines ending with ^{} have the correct commit SHA for that version.