Skip to content

Conversation

@rcjsuen
Copy link
Member

@rcjsuen rcjsuen commented Apr 10, 2019

Commit has functions that requires a reference to a repository to run. Because parent(*) was simply calling out to libgit2's git_commit_parent directly, its repo field was not being set.

Creating a wrapper in the Commit class and assigning a repository to the object before returning it will fix this problem.

Fixes #1653.

Commit has functions that requires a reference to a repository to run.
Because parent(*) was simply calling out to libgit2's
git_commit_parent directly, its repo field was not being set. Creating
a wrapper in the Commit class and assigning a repository to the object
before returning it will fix this problem.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
@implausible implausible merged commit 0b3cdc1 into nodegit:master Apr 17, 2019
@rcjsuen rcjsuen deleted the getTree-fix branch April 17, 2019 19:23
@rcjsuen
Copy link
Member Author

rcjsuen commented Apr 17, 2019

Thanks for reviewing this, @implausible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

getTree fails on result of commit.parent(0)

2 participants