Skip to content

Commit d3fe1bc

Browse files
Fix more instances of pygit2 incompatibility (#2307)
Looked more comprehensively to get more of what could have been in #2306
1 parent 2ad066a commit d3fe1bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

osv/sources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def push_source_changes(repo,
267267
tree = repo.index.write_tree()
268268
author = git_author()
269269
repo.create_commit(repo.head.name, author, author, commit_message, tree,
270-
[repo.head.peel().oid])
270+
[repo.head.peel().id])
271271

272272
for retry_num in range(1 + PUSH_RETRIES):
273273
try:
@@ -305,7 +305,7 @@ def push_source_changes(repo,
305305
# Success, commit and try pushing again.
306306
tree = repo.index.write_tree()
307307
repo.create_commit(repo.head.name, commit.author, commit.author,
308-
commit.message, tree, [repo.head.peel().oid])
308+
commit.message, tree, [repo.head.peel().id])
309309
repo.state_cleanup()
310310

311311
return True

0 commit comments

Comments
 (0)