mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 11:48:27 +08:00
master: migrate deprecated pygit2 commit.hex attr
This commit is contained in:
parent
352cf907ee
commit
fbb1a2c25d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user