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

Fix behavior of Commit#parent by tniessen · Pull Request #1509 · nodegit/nodegit · GitHub

Fix behavior of Commit#parent - #1509

Merged
implausible merged 1 commit into
nodegit:masterfrom
tniessen:fix-commit-parent-no-repo-prop
Jan 21, 2020
Merged

Fix behavior of Commit#parent#1509
implausible merged 1 commit into
nodegit:masterfrom
tniessen:fix-commit-parent-no-repo-prop

Conversation

tniessen commented Jun 6, 2018

Copy link
Copy Markdown
Contributor

Commit#parent did not assign the repo property so subsequent calls which relied on this property (such as Commit#getTree) failed. This change works around this problem by imitating what LookupWrapper does for Commit.lookup, that is, it wraps the actual call in a new function and manually assigns the repo property.

This commit also adds a test case for the corrected behavior.

Copy link
Copy Markdown
Contributor Author

Ping @tbranyen, @johnhaley81, @maxkorp.

Comment thread lib/commit.js Outdated

Copy link
Copy Markdown
Contributor Author

@implausible Sorry for the late reply. Is the new commit better?

Copy link
Copy Markdown
Contributor Author

Ping @implausible, it's been far more than a year, is this still a helpful PR? If not, please close it.

Commit#parent did not assign the repo property so subsequent calls which
relied on this property (such as Commit#getTree) failed. This change
works around this problem by imitating what LookupWrapper does for
Commit.lookup, that is, it wraps the actual call in a new function and
manually assigns the repo property.
tniessen force-pushed the fix-commit-parent-no-repo-prop branch from a84df76 to e3bb744 Compare January 19, 2020 19:01
tbranyen dismissed implausible’s stale review January 19, 2020 23:33

It has been resolved

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.

2 participants


Back | FazBrowse Home | New Git URL