From fb6609b8a38272cb2aa95c52b6c969d47b4f9983 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 24 Aug 2024 10:44:34 +0800 Subject: [PATCH] master: migrate deprecated pygit2 commit.hex attr --- artiq/master/experiments.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/artiq/master/experiments.py b/artiq/master/experiments.py index 935872fb0..45bd1b50d 100644 --- a/artiq/master/experiments.py +++ b/artiq/master/experiments.py @@ -206,10 +206,9 @@ class GitBackend: a git hash """ commit, _ = self.git.resolve_refish(rev) - - logger.debug('Resolved git ref "%s" into "%s"', rev, commit.hex) - - return commit.hex + commit_id = str(commit.id) + logger.debug('Resolved git ref "%s" into "%s"', rev, commit_id) + return commit_id def request_rev(self, rev): rev = self._get_pinned_rev(rev)