Title: Running uv cz dump or uv cz changelog raises NotAGitProjectError in git bash on Windows 11 · Issue #1497 · commitizen-tools/commitizen · GitHub
Open Graph Title: Running uv cz dump or uv cz changelog raises NotAGitProjectError in git bash on Windows 11 · Issue #1497 · commitizen-tools/commitizen
X Title: Running uv cz dump or uv cz changelog raises NotAGitProjectError in git bash on Windows 11 · Issue #1497 · commitizen-tools/commitizen
Description: Description I'm running git bash version 2.43.0.windows.1 on Windows 11. My Python project uses uv, so I installed commitizen as recommended in the documentation with: us install commitizen. I use pyproject.toml so uv run cz init correct...
Open Graph Description: Description I'm running git bash version 2.43.0.windows.1 on Windows 11. My Python project uses uv, so I installed commitizen as recommended in the documentation with: us install commitizen. I use ...
X Description: Description I'm running git bash version 2.43.0.windows.1 on Windows 11. My Python project uses uv, so I installed commitizen as recommended in the documentation with: us install commitizen. I ...
Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1497
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Running uv cz dump or uv cz changelog raises NotAGitProjectError in git bash on Windows 11","articleBody":"### Description\n\nI'm running git bash version 2.43.0.windows.1 on Windows 11.\nMy Python project uses ``uv``, so I installed ``commitizen`` as recommended in the documentation with:\n``us install commitizen``.\nI use ``pyproject.toml`` so ``uv run cz init`` correctly detected the project settings.\nI'm able to run the commands ``info``, ``ls``, ``example``, ``schema``, and ``version``.\nAll other commands ``commit``, ``bump``, and ``changelog`` fail.\n\n### Steps to reproduce\n\n1. Run: ``uv run cz commit --dry-run`` or\n2. Run: `` uv run cz bump --dry-run`` or\n3. Run ``uv run cz changelog --dry-run``\n\n\n### Current behavior\n\nAll three commands fail with:\nfatal: not a git repository (or any of the parent directories): .git\n\nWith ``--debug`` this is the traceback:\nTraceback (most recent call last):\n File \"C:\\Users\\\u003cuser-omitted\u003e\\AppData\\Local\\Programs\\Python\\Python310\\lib\\runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"C:\\Users\\\u003cuser-omitted\u003e\\AppData\\Local\\Programs\\Python\\Python310\\lib\\runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"C:\\users\\\u003cuser-omitted\u003e\\.local\\bin\\cz.exe\\__main__.py\", line 10, in \u003cmodule\u003e\n File \"C:\\Users\\\u003cuser-omitted\u003e\\AppData\\Roaming\\uv\\tools\\commitizen\\lib\\site-packages\\commitizen\\cli.py\", line 660, in main\n args.func(conf, arguments)()\n File \"C:\\Users\\\u003cuser-omitted\u003e\\AppData\\Roaming\\uv\\tools\\commitizen\\lib\\site-packages\\commitizen\\commands\\commit.py\", line 34, in __init__\n raise NotAGitProjectError()\ncommitizen.exceptions.NotAGitProjectError: fatal: not a git repository (or any of the parent directories): .git\n\nIf I run the command: ``git rev-parse --is-inside-work-tree`` in the same directory as the above commands, I correctly get ``true``.\n\n\n\n### Desired behavior\n\nObviously, I expect that the failing ``cz`` commands work as intended when run in my environment.\n\n### Screenshots\n\n_No response_\n\n### Environment\n\nCommitizen Version: 4.8.2\nPython Version: 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)]\nOperating System: Windows","author":{"url":"https://github.com/giant0791","@type":"Person","name":"giant0791"},"datePublished":"2025-06-02T17:40:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1497/commitizen/issues/1497"}
| 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:4b91d650-e17b-7c3e-2c1d-0ea6c4f458dc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97F2:B008A:12DBB30:1A03460:6A4DE761 |
| html-safe-nonce | 1f8c737831108177941c9e317cf8d0dbff24550e402f4ccb6ef0740edb2ee50a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0YyOkIwMDhBOjEyREJCMzA6MUEwMzQ2MDo2QTRERTc2MSIsInZpc2l0b3JfaWQiOiI1NjA0NjYwNzQ3OTg2Mzk3MDI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bf53e488cc1ec713f8e8177c4df02604fd3fcf16824b7bdc8a85a62a216c5940 |
| hovercard-subject-tag | issue:3111059872 |
| 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/1497/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b3f1466d7e6dbf34066d29e68a71a1a8b39f8dd332a1c4808c5b20c5da6fa06f/commitizen-tools/commitizen/issues/1497 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b3f1466d7e6dbf34066d29e68a71a1a8b39f8dd332a1c4808c5b20c5da6fa06f/commitizen-tools/commitizen/issues/1497 |
| og:image:alt | Description I'm running git bash version 2.43.0.windows.1 on Windows 11. My Python project uses uv, so I installed commitizen as recommended in the documentation with: us install commitizen. I use ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | giant0791 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width