Skip to content

Commit

Permalink
Remove ref to deprecated .hex attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Honaker <[email protected]>
  • Loading branch information
HonakerM committed Jan 9, 2025
1 parent aba6ceb commit 1a06db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oper8/vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __init__(self, directory: str, create_if_needed: bool = False, **kwargs):
@property
def head(self) -> str:
"""Get a reference to the current HEAD"""
return self.repo.head.target.hex
return str(self.repo.head.target)

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

0 comments on commit 1a06db3

Please sign in to comment.