Skip to content

Commit

Permalink
Gh 41735 (#83)
Browse files Browse the repository at this point in the history
* apacheGH-41735: [CI][Archery] Update archery to be compatible with pygit2 1.15 API change

* Minor update to variable name
  • Loading branch information
raulcd authored May 20, 2024
1 parent cc3e2db commit 095077a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dev/archery/archery/crossbow/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,14 @@ def create_branch(self, branch_name, files, parents=None, message='',
return branch

def create_tag(self, tag_name, commit_id, message=''):
git_object_commit = (
pygit2.GIT_OBJECT_COMMIT
if getattr(pygit2, 'GIT_OBJECT_COMMIT')
else pygit2.GIT_OBJ_COMMIT
)
tag_id = self.repo.create_tag(tag_name, commit_id,
pygit2.GIT_OBJ_COMMIT, self.signature,
git_object_commit,
self.signature,
message)

# append to the pushable references
Expand Down

0 comments on commit 095077a

Please sign in to comment.