Use hash of tag when adding new version

Also extend getref with a refname parameter and implement it for
vcs_git.
This commit is contained in:
Jochen Sprickerhof 2021-06-12 15:02:58 +02:00 committed by Jochen Sprickerhof
parent 35cf7f289e
commit cd405cc93e
2 changed files with 18 additions and 3 deletions

View file

@ -217,6 +217,12 @@ def check_tags(app, pattern):
hver = version
if hver:
try:
commit = vcs.getref(htag)
if commit:
return (hver, hcode, commit)
except VCSException:
pass
return (hver, hcode, htag)
return (None, "Couldn't find any version information", None)