Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensures that commits from parent(*) has a repository #1658

Merged
merged 1 commit into from
Apr 17, 2019

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