forked from M-Labs/artiq
master: migrate deprecated pygit2 commit.hex attr
This commit is contained in:
parent
f56f0b83e7
commit
fb6609b8a3
|
@ -206,10 +206,9 @@ class GitBackend:
|
||||||
a git hash
|
a git hash
|
||||||
"""
|
"""
|
||||||
commit, _ = self.git.resolve_refish(rev)
|
commit, _ = self.git.resolve_refish(rev)
|
||||||
|
commit_id = str(commit.id)
|
||||||
logger.debug('Resolved git ref "%s" into "%s"', rev, commit.hex)
|
logger.debug('Resolved git ref "%s" into "%s"', rev, commit_id)
|
||||||
|
return commit_id
|
||||||
return commit.hex
|
|
||||||
|
|
||||||
def request_rev(self, rev):
|
def request_rev(self, rev):
|
||||||
rev = self._get_pinned_rev(rev)
|
rev = self._get_pinned_rev(rev)
|
||||||
|
|
Loading…
Reference in New Issue