Skip to content

Commit

Permalink
apacheGH-41735: [CI][Archery] Update archery to be compatible with py…
Browse files Browse the repository at this point in the history
…git2 1.15 API change
  • Loading branch information
raulcd committed May 20, 2024
1 parent cc3e2db commit 8e93ade
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=''):
commit_object = (
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,
commit_object,
self.signature,
message)

# append to the pushable references
Expand Down

0 comments on commit 8e93ade

Please sign in to comment.