pygit2 unable to commit changes
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
Start with the repository.create_commit call in pygit2 1.7.0 and the repository.head.get_object() expression shown in the report. Reproduce the KeyError with the provided snippet and verify the expected current API for obtaining the parent commit. Done means the reported commit operation succeeds or the issue is narrowed with the missing repository, object-type, and version details.
Written by the indexing model from the issue text.
Description
pygit2 == 1.7.0
I have been trying to commit changes to repo but unable to do so
snippet
oid = repository.create_commit(<branch_name>, author, commiter, message, tree, [repository.head.get_object().hex])
author and commiter are already defined
looks like get_object. was deprecated in newer version . are there any work arounds in latest version for commiting changes
error >>
KeyError: 'the requested type does not match the type in the ODB'
let know if any more details are needed
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 408
- Avg merge
- 2d 57m
- Merged PRs (30d)
- 7
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from libgit2/pygit2
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·