Title: [cli strategies] The current working directory is not exactly equal to the git root path · Issue #677 · commitizen/cz-cli · GitHub
Open Graph Title: [cli strategies] The current working directory is not exactly equal to the git root path · Issue #677 · commitizen/cz-cli
X Title: [cli strategies] The current working directory is not exactly equal to the git root path · Issue #677 · commitizen/cz-cli
Description: When the current project is a subproject of the repository, the current working directory is not the root of the git repository. And this will cause the git-cz commit operation caused by the husky hook to fail. (node:15426) UnhandledProm...
Open Graph Description: When the current project is a subproject of the repository, the current working directory is not the root of the git repository. And this will cause the git-cz commit operation caused by the husky ...
X Description: When the current project is a subproject of the repository, the current working directory is not the root of the git repository. And this will cause the git-cz commit operation caused by the husky ...
Opengraph URL: https://github.com/commitizen/cz-cli/issues/677
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[cli strategies] The current working directory is not exactly equal to the git root path","articleBody":"When the current project is a subproject of the repository, the current working directory is not the root of the git repository. And this will cause the git-cz commit operation caused by the husky hook to fail.\r\n\r\n```\r\n(node:15426) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/Users/repository/sub/.git/COMMIT_EDITMSG'\r\n at openSync (fs.js:451:3)\r\n at commit (/Users/repository/sub/node_modules/commitizen/dist/git/commit.js:844:62)\r\n at dispatchGitCommit (/Users/repository/sub/node_modules/commitizen/dist/commitizen/commit.js:545:19)\r\n at /Users/repository/sub/node_modules/commitizen/dist/commitizen/commit.js:628:11\r\n at /Users/repository/sub/node_modules/cz-conventional-changelog/engine.js:216:9\r\n at processTicksAndRejections (internal/process/task_queues.js:93:5)\r\n(node:15426) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)\r\n(node:15426) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.\r\n```\r\n\r\nThis problem is very similar to #187 。By the way, the document was not updated with the bug fixed.\r\n\r\nI created a pull request for this problem #676 .","author":{"url":"https://github.com/shixy96","@type":"Person","name":"shixy96"},"datePublished":"2019-10-06T17:53:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/677/cz-cli/issues/677"}
| 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:cdd1af04-4a4d-d00d-0854-59a0b30b8673 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC92:17973D:14F032:1C2D98:6A6169EF |
| html-safe-nonce | 89b267ec6d01b2e973668011d96b422e9efa9b381eec9a1503fb33fefc962005 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzkyOjE3OTczRDoxNEYwMzI6MUMyRDk4OjZBNjE2OUVGIiwidmlzaXRvcl9pZCI6IjM0MTI5MzMyMjg4MjczMzkyNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 91dca2eb54c85ad5dbabbcceeca69968207434098b002c6661f5a80814f47c55 |
| hovercard-subject-tag | issue:503135897 |
| 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/commitizen/cz-cli/677/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c5234e7767d64493712637d6971f2dcb63b1e418268a8e297645ca1f0614c360/commitizen/cz-cli/issues/677 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c5234e7767d64493712637d6971f2dcb63b1e418268a8e297645ca1f0614c360/commitizen/cz-cli/issues/677 |
| og:image:alt | When the current project is a subproject of the repository, the current working directory is not the root of the git repository. And this will cause the git-cz commit operation caused by the husky ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shixy96 |
| hostname | github.com |
| expected-hostname | github.com |
| None | a69385f7d268ece7ad25b131bbd70f457024811fc79afcae43785a6849b724e2 |
| turbo-cache-control | no-preview |
| go-import | github.com/commitizen/cz-cli git https://github.com/commitizen/cz-cli.git |
| octolytics-dimension-user_id | 11980392 |
| octolytics-dimension-user_login | commitizen |
| octolytics-dimension-repository_id | 34230966 |
| octolytics-dimension-repository_nwo | commitizen/cz-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 34230966 |
| octolytics-dimension-repository_network_root_nwo | commitizen/cz-cli |
| 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 | 484cf265a1f970d5c7a5e7c37cb677d8010aa12f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width