fix: use ref instead of branch name

This commit is contained in:
Carlo Sala 2026-05-28 18:59:41 +02:00
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: if status["has_updates"] is True:
short_sha = status["head_ref"][:8] short_sha = status["head_ref"][:8]
new_version = status["version"] if is_tag else short_sha 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: try:
branch_name = f"update/{self.path}/{new_version}" branch_name = f"update/{self.path}/{new_version}"