mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-08 16:30:28 +03:00
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:
parent
35cf7f289e
commit
cd405cc93e
2 changed files with 18 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue