From f35dbc126a159dfb37c5b487ec57275a0b1b251c Mon Sep 17 00:00:00 2001 From: Jonathan Teran Carballo Date: Mon, 21 Sep 2026 14:17:43 -0300 Subject: [PATCH] bugfix: use full commit sha --- src/git_flow/command/tag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/git_flow/command/tag.py b/src/git_flow/command/tag.py index eb196e6..e494318 100644 --- a/src/git_flow/command/tag.py +++ b/src/git_flow/command/tag.py @@ -48,7 +48,7 @@ def tag(token: str | None = None, update_changelog: bool = False): current_tag = base.get_remote_api(token).get_latest_tag(suffix) else: # Commits se obtienen del último merge, listando hasta el primer forkpoint - branch = Git("show", merge_commit + "^2", patch=False, format="%h").firstline() + branch = Git("show", merge_commit + "^2", patch=False, format="%H").firstline() fork_point = Git.get_first_fork_point(branch, target) commits = Git.get_commits(fork_point, branch) # Último tag se obtiene localmente @@ -74,7 +74,7 @@ def tag(token: str | None = None, update_changelog: bool = False): if ci: Git("push").exec() - tag_commit = Git("show", "HEAD", patch=False, format="%h").firstline() + tag_commit = Git("show", "HEAD", patch=False, format="%H").firstline() if ci: base.io_success(base.get_remote_api(token).create_tag(next_tag, tag_commit))