Skip to content

Commit

Permalink
Merge pull request #38 from arpitszillow/fix-deprecated-attr
Browse files Browse the repository at this point in the history
Remove ref to deprecated attribute on object (PyGit2). Commit.hex
  • Loading branch information
AntonKueltz authored Nov 12, 2024
2 parents 379b01c + 25da4d9 commit 9493387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions battenberg/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ def upgrade(self, checkout: Optional[str] = None, no_input: bool = True,
)
commit = worktree.repo.get(oid)

# Make template branch ref to created commit
self.repo.lookup_branch(TEMPLATE_BRANCH).set_target(commit.hex)
# Make template branch ref to created commit, see https://github.com/libgit2/pygit2/blob/master/CHANGELOG.md#1150-2024-05-18
self.repo.lookup_branch(TEMPLATE_BRANCH).set_target(str(commit.id))

# Let's merge our changes into HEAD
self._merge_template_branch(
Expand Down

0 comments on commit 9493387

Please sign in to comment.