From 521ce94782533f7580d10252347631b19b8f4705 Mon Sep 17 00:00:00 2001 From: Tupui <23188539+tupui@users.noreply.github.com> Date: Tue, 10 Sep 2024 02:21:24 +0200 Subject: [PATCH] Another fix for pre-commit --- pre-commit/soroban_versioning_pre_push.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pre-commit/soroban_versioning_pre_push.py b/pre-commit/soroban_versioning_pre_push.py index bacf99d..0984195 100644 --- a/pre-commit/soroban_versioning_pre_push.py +++ b/pre-commit/soroban_versioning_pre_push.py @@ -23,8 +23,6 @@ def main(): - project_key = bytes.fromhex(PROJECT_KEY) - branch = ( subprocess.run(["git", "branch", "--show-current"], capture_output=True) .stdout.decode() @@ -36,6 +34,8 @@ def main(): if PROJECT_KEY is None: raise ValueError("'TANSU_PROJECT_KEY' is missing from the environment") + project_key = bytes.fromhex(PROJECT_KEY) + commit_hash = ( subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True) .stdout.decode()