Add ref to update config

This commit is contained in:
rubenwardy
2020-12-15 22:08:10 +00:00
parent 2f2b8dc983
commit 17798df342
3 changed files with 6 additions and 3 deletions

View File

@@ -322,9 +322,8 @@ def check_update_config(package_id):
raise TaskError("No update config attached to package")
config = package.update_config
ref = None
hash = get_commit_hash(package.repo, ref)
hash = get_commit_hash(package.repo, package.update_config.ref)
if config.last_commit == hash:
return
@@ -342,7 +341,7 @@ def check_update_config(package_id):
db.session.add(rel)
db.session.commit()
makeVCSRelease.apply_async((rel.id, ref), task_id=rel.task_id)
makeVCSRelease.apply_async((rel.id, package.update_config.ref), task_id=rel.task_id)
elif not config.outdated:
config.outdated = True