Add fallback to commit ID when ver tag is missing

This commit is contained in:
syeopite 2025-08-24 22:46:26 -07:00
parent 6acc7229c2
commit 8b56c84ae1
No known key found for this signature in database
GPG key ID: A73C186DA3955A1A

View file

@ -19,7 +19,7 @@ require "./protodec/utils"
CURRENT_BRANCH = {{ "#{`git branch | sed -n '/* /s///p'`.strip}" }}
CURRENT_COMMIT = {{ "#{`git rev-list HEAD --max-count=1 --abbrev-commit`.strip}" }}
CURRENT_VERSION = {{ "#{`git describe --tags --abbrev=0`.strip}" }}
CURRENT_VERSION = {{ "#{`git describe --always --tags --abbrev=0`.strip}" }}
SOFTWARE = {
"name" => "protodec",