FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Ensures that commits from parent(*) has a repository by rcjsuen · Pull Request #1658 · nodegit/nodegit · GitHub

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

Merged
implausible merged 1 commit into
nodegit:masterfrom
rcjsuen:getTree-fix
Apr 17, 2019
Merged

Ensures that commits from parent(*) has a repository#1658
implausible merged 1 commit into
nodegit:masterfrom
rcjsuen:getTree-fix

Conversation

rcjsuen commented Apr 10, 2019

Copy link
Copy Markdown
Member

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 merged commit 0b3cdc1 into nodegit:master Apr 17, 2019
rcjsuen deleted the getTree-fix branch April 17, 2019 19:23

rcjsuen commented Apr 17, 2019

Copy link
Copy Markdown
Member Author

Thanks for reviewing this, @implausible.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL