Title: `Commit.parent` can cause Nodegit promises to stop working · Issue #2009 · nodegit/nodegit · GitHub
Open Graph Title: `Commit.parent` can cause Nodegit promises to stop working · Issue #2009 · nodegit/nodegit
X Title: `Commit.parent` can cause Nodegit promises to stop working · Issue #2009 · nodegit/nodegit
Description: System information node version: v22.4.1 npm or yarn version: pnpm 9.12.3 OS/version/architecture: Gentoo Linux amd64 Applicable nodegit version: 0.28.0-alpha.28 Description Encountered while testing with Jest. Calling commit.parent() ca...
Open Graph Description: System information node version: v22.4.1 npm or yarn version: pnpm 9.12.3 OS/version/architecture: Gentoo Linux amd64 Applicable nodegit version: 0.28.0-alpha.28 Description Encountered while testi...
X Description: System information node version: v22.4.1 npm or yarn version: pnpm 9.12.3 OS/version/architecture: Gentoo Linux amd64 Applicable nodegit version: 0.28.0-alpha.28 Description Encountered while testi...
Opengraph URL: https://github.com/nodegit/nodegit/issues/2009
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Commit.parent` can cause Nodegit promises to stop working","articleBody":"## System information\r\n - node version: v22.4.1\r\n - npm or yarn version: pnpm 9.12.3\r\n - OS/version/architecture: Gentoo Linux amd64\r\n - Applicable nodegit version: 0.28.0-alpha.28\r\n\r\n## Description\r\n\r\nEncountered while testing with Jest.\r\n\r\nCalling `commit.parent()` causes promises from Nodegit related to commits to stop resolving in certain cases. So far, I've managed to reproduce this by opening two separate Git repos in the same process and calling `commit.parent(0)` on a commit on each of them. I'll create a proper reproducer later.\r\n\r\n```js\r\nconst repo1 = await Nodegit.Repository.open(\"repo1\");\r\nconst commit1 = await repo1.getReferenceCommit(\"HEAD\");\r\nawait commit1.parent(0);\r\n\r\nconst repo2 = await Nodegit.Repository.open(\"repo2\");\r\nconst commit2 = await repo2.getReferenceCommit(\"HEAD\");\r\nawait commit2.parent(0);\r\n```","author":{"url":"https://github.com/sin-ack","@type":"Person","name":"sin-ack"},"datePublished":"2024-11-22T15:15:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2009/nodegit/issues/2009"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a2171881-9b31-deb1-9650-5937c40233e3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E70C:192E1B:B83E2:E9DD2:69701617 |
| html-safe-nonce | 668de1dbff8365cde5be783b688b1df48471e78644b4dcaa0c770364e8d9eafc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzBDOjE5MkUxQjpCODNFMjpFOUREMjo2OTcwMTYxNyIsInZpc2l0b3JfaWQiOiIzMjY3ODE3MTI0Mzc3MTM4NzExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e3294412650e68a7b5d167ff0b4d2ca38e6a956c58f56ae1c9bb1302d871bbc5 |
| hovercard-subject-tag | issue:2683522561 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodegit/nodegit/2009/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe4d360dd2805ded0146af30ac1e1240c8813ca3d7c59e99214bb2a6d4fb81b7/nodegit/nodegit/issues/2009 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe4d360dd2805ded0146af30ac1e1240c8813ca3d7c59e99214bb2a6d4fb81b7/nodegit/nodegit/issues/2009 |
| og:image:alt | System information node version: v22.4.1 npm or yarn version: pnpm 9.12.3 OS/version/architecture: Gentoo Linux amd64 Applicable nodegit version: 0.28.0-alpha.28 Description Encountered while testi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sin-ack |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043a09521e81f00c45482046b3f38390b8b292cf9a86ad665a632633a072c05c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 98881eadf8ae73000970c42161c094b0809b1330 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width