fix: use ref instead of branch name

This commit is contained in:
Carlo Sala 2026-05-28 18:59:41 +02:00
parent 424715a8ab
commit 0efcee86af
No known key found for this signature in database
GPG Key ID: DA6FB450C1A4FE9A

View File

@ -219,7 +219,7 @@ class Dependency:
if status["has_updates"] is True:
short_sha = status["head_ref"][:8]
new_version = status["version"] if is_tag else short_sha
source_ref = new_version if is_tag else remote_branch
source_ref = new_version if is_tag else status["head_ref"]
try:
branch_name = f"update/{self.path}/{new_version}"