Title: cz info does not read from info_path for non root directory · Issue #1897 · commitizen-tools/commitizen · GitHub
Open Graph Title: cz info does not read from info_path for non root directory · Issue #1897 · commitizen-tools/commitizen
X Title: cz info does not read from info_path for non root directory · Issue #1897 · commitizen-tools/commitizen
Description: Description My cz config: [tool.commitizen] name = "cz_customize" [tool.commitizen.customize] info_path = 'README_cz.md' cz info should display the contents of the file at info_path from any directory within the repository. Steps to repr...
Open Graph Description: Description My cz config: [tool.commitizen] name = "cz_customize" [tool.commitizen.customize] info_path = 'README_cz.md' cz info should display the contents of the file at info_path from any direct...
X Description: Description My cz config: [tool.commitizen] name = "cz_customize" [tool.commitizen.customize] info_path = 'README_cz.md' cz info should display the contents of the file at info_pa...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1897
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cz info does not read from info_path for non root directory","articleBody":"### Description\n\nMy cz config:\n```\n[tool.commitizen]\nname = \"cz_customize\"\n[tool.commitizen.customize]\ninfo_path = 'README_cz.md'\n```\n\n`cz info` should display the contents of the file at `info_path` from any directory within the repository.\n\n### Steps to reproduce\n\n1. Modify .cz.toml \n2. Run `cz info`\n\n### Current behavior\n\n```\n$ cd directory\n$ cz info\nTraceback (most recent call last):\n File \"/opt/homebrew/bin/cz\", line 6, in \u003cmodule\u003e\n sys.exit(main())\n ~~~~^^\n File \"/opt/homebrew/Cellar/commitizen/4.13.9/libexec/lib/python3.14/site-packages/commitizen/cli.py\", line 689, in main\n args.func(conf, arguments)() # type: ignore[arg-type]\n ~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n File \"/opt/homebrew/Cellar/commitizen/4.13.9/libexec/lib/python3.14/site-packages/commitizen/commands/info.py\", line 13, in __call__\n out.write(self.cz.info())\n ~~~~~~~~~~~~^^\n File \"/opt/homebrew/Cellar/commitizen/4.13.9/libexec/lib/python3.14/site-packages/commitizen/cz/customize/customize.py\", line 72, in info\n return Path(info_path).read_text(encoding=self.config.settings[\"encoding\"])\n ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/homebrew/Cellar/python@3.14/3.14.3_1/Frameworks/Python.framework/Versions/3.14/lib/python3.14/pathlib/__init__.py\", line 787, in read_text\n with self.open(mode='r', encoding=encoding, errors=errors, newline=newline) as f:\n ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/opt/homebrew/Cellar/python@3.14/3.14.3_1/Frameworks/Python.framework/Versions/3.14/lib/python3.14/pathlib/__init__.py\", line 771, in open\n return io.open(self, mode, buffering, encoding, errors, newline)\n ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nFileNotFoundError: [Errno 2] No such file or directory: 'README_cz.md'\n```\n\n### Desired behavior\n\n`cz info` should display the contents of the file at `info_path` from any directory within the repository.\n\n### Screenshots\n\n_No response_\n\n### Environment\n\n$ cz version --report\nCommitizen Version: 4.13.9\nPython Version: 3.14.3 (main, Feb 3 2026, 15:32:20) [Clang 17.0.0 (clang-1700.6.3.2)]\nOperating System: Darwin","author":{"url":"https://github.com/dracorp","@type":"Person","name":"dracorp"},"datePublished":"2026-03-17T08:09:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1897/commitizen/issues/1897"}
| 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:1c9f66d7-87ea-d0fb-257e-e19a05c77dfc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD42:3EE845:219E246:2DFFE2D:6A4EC9AA |
| html-safe-nonce | fc16e019ae74a02da75c0e2da3794534fee20fd82cd8664852d724992d8f02fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDQyOjNFRTg0NToyMTlFMjQ2OjJERkZFMkQ6NkE0RUM5QUEiLCJ2aXNpdG9yX2lkIjoiNDYyMjQ5NjUxMzAyNDUxMDM3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2d506a27851c609e9d79f5d7e19226a4d1d55f27b7ea9deff5f3a5f0a75cff02 |
| hovercard-subject-tag | issue:4086891995 |
| 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-tools/commitizen/1897/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03b0e467b84c764c4ddf87e8b3b0590c37388f566decb1e1f1299e1f4be21fee/commitizen-tools/commitizen/issues/1897 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03b0e467b84c764c4ddf87e8b3b0590c37388f566decb1e1f1299e1f4be21fee/commitizen-tools/commitizen/issues/1897 |
| og:image:alt | Description My cz config: [tool.commitizen] name = "cz_customize" [tool.commitizen.customize] info_path = 'README_cz.md' cz info should display the contents of the file at info_path from any direct... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dracorp |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git |
| octolytics-dimension-user_id | 62252524 |
| octolytics-dimension-user_login | commitizen-tools |
| octolytics-dimension-repository_id | 106127589 |
| octolytics-dimension-repository_nwo | commitizen-tools/commitizen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 106127589 |
| octolytics-dimension-repository_network_root_nwo | commitizen-tools/commitizen |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width