Title: git cz fails when not in the root directory · Issue #187 · commitizen/cz-cli · GitHub
Open Graph Title: git cz fails when not in the root directory · Issue #187 · commitizen/cz-cli
X Title: git cz fails when not in the root directory · Issue #187 · commitizen/cz-cli
Description: When I try to run git cz and I'm not in the root directory I get an error. ~/code/cz-cli/src (run-from-anywhere) $ git cz ./node_modules/cz-conventional-changelog /Users/patrickmcelhaney/code/cz-cli/src /usr/local/lib/node_modules/commit...
Open Graph Description: When I try to run git cz and I'm not in the root directory I get an error. ~/code/cz-cli/src (run-from-anywhere) $ git cz ./node_modules/cz-conventional-changelog /Users/patrickmcelhaney/code/cz-cl...
X Description: When I try to run git cz and I'm not in the root directory I get an error. ~/code/cz-cli/src (run-from-anywhere) $ git cz ./node_modules/cz-conventional-changelog /Users/patrickmcelhaney/code/c...
Opengraph URL: https://github.com/commitizen/cz-cli/issues/187
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"git cz fails when not in the root directory","articleBody":"When I try to run `git cz` and I'm not in the root directory I get an error. \n\n``` sh\n~/code/cz-cli/src (run-from-anywhere)\n$ git cz\n./node_modules/cz-conventional-changelog /Users/patrickmcelhaney/code/cz-cli/src\n/usr/local/lib/node_modules/commitizen/dist/commitizen/adapter.js:185\n throw error;\n ^\n\nError: Could not resolve /Users/patrickmcelhaney/code/cz-cli/src/node_modules/cz-conventional-changelog\n at Function.Module._resolveFilename (module.js:339:15)\n at Function.require.resolve (internal/module.js:23:19)\n at resolveAdapterPath (/usr/local/lib/node_modules/commitizen/dist/commitizen/adapter.js:182:20)\n at gitCz (/usr/local/lib/node_modules/commitizen/dist/cli/strategies/git-cz.js:77:35)\n at Object.bootstrap (/usr/local/lib/node_modules/commitizen/dist/cli/git-cz.js:32:27)\n at Object.\u003canonymous\u003e (/usr/local/lib/node_modules/commitizen/bin/git-cz.js:2:34)\n at Module._compile (module.js:413:34)\n at Object.Module._extensions..js (module.js:422:10)\n at Module.load (module.js:357:32)\n at Function.Module._load (module.js:314:12)\n```\n","author":{"url":"https://github.com/pmcelhaney","@type":"Person","name":"pmcelhaney"},"datePublished":"2016-04-08T13:29:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/187/cz-cli/issues/187"}
| 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:e37d0c9d-057e-a9e1-b4a2-2b18443f50c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89F0:B622E:7E5C3E:AE9D32:6A61B897 |
| html-safe-nonce | 1d5800af6b59f7434c2370ff86494a53d29a4de96a2e4fe1a4aa9bf1a5fc5bf4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUYwOkI2MjJFOjdFNUMzRTpBRTlEMzI6NkE2MUI4OTciLCJ2aXNpdG9yX2lkIjoiMTIzNDQ3MTIxMDA4MTk1ODAzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2a284e97e559df9f22042b505241828f56e591fc795ee1450343ee5a8a59b8ab |
| hovercard-subject-tag | issue:146929746 |
| 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/187/issue_layout |
| twitter:image | https://opengraph.githubassets.com/37b54e0b201b1c89a97991c6306990e2c309406646f7d12d295e1a7a0c09703f/commitizen/cz-cli/issues/187 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/37b54e0b201b1c89a97991c6306990e2c309406646f7d12d295e1a7a0c09703f/commitizen/cz-cli/issues/187 |
| og:image:alt | When I try to run git cz and I'm not in the root directory I get an error. ~/code/cz-cli/src (run-from-anywhere) $ git cz ./node_modules/cz-conventional-changelog /Users/patrickmcelhaney/code/cz-cl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pmcelhaney |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6f4633bcf01c1ad14b73fd07dd39ac31d61f3d3c2578ee08ec1792b7b351eeb9 |
| 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 | ac296ae7f21856f1f92adbad22f870b6fbb4b907 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width