Skip to content

Commit c888d1f

Browse files
committed
Remove ref to deprecated .hex attribute
1 parent aba6ceb commit c888d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oper8/vcs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def __init__(self, directory: str, create_if_needed: bool = False, **kwargs):
112112
@property
113113
def head(self) -> str:
114114
"""Get a reference to the current HEAD"""
115-
return self.repo.head.target.hex
115+
return str(self.repo.head.target)
116116

117117
def get_ref(self, refish: str) -> Tuple[Commit, Reference]:
118118
"""Get a git commit and reference from a shorthand string

0 commit comments

Comments
 (0)