From d4ec058d055c68fc885ab859f4d3ddcc1f630712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kara=C5=9B?= <6159874+MaciejKaras@users.noreply.github.com> Date: Mon, 17 Nov 2025 08:58:53 +0100 Subject: [PATCH] `kubectl-mongodb` promotion: Use short=8 format --- scripts/release/kubectl_mongodb/promote_kubectl_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release/kubectl_mongodb/promote_kubectl_plugin.py b/scripts/release/kubectl_mongodb/promote_kubectl_plugin.py index 47e9232ae..03767fa88 100644 --- a/scripts/release/kubectl_mongodb/promote_kubectl_plugin.py +++ b/scripts/release/kubectl_mongodb/promote_kubectl_plugin.py @@ -77,7 +77,7 @@ def get_commit_from_tag(tag: str) -> str: result = subprocess.run( # using --short because that's how staging version is figured out for staging build scenario # https://github.com/mongodb/mongodb-kubernetes/blob/1.5.0/scripts/dev/contexts/evg-private-context#L137 - ["git", "rev-parse", "--short", f"{tag}^{{commit}}"], # git rev-parse v1.1.1^{commit} + ["git", "rev-parse", "--short=8", f"{tag}^{{commit}}"], # git rev-parse --short=8 v1.1.1^{commit} capture_output=True, text=True, check=True,