We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87bf26f commit 561b1c2Copy full SHA for 561b1c2
commitizen/config/__init__.py
@@ -40,9 +40,8 @@ def _check_and_warn_multiple_configs(filepath: str | None = None) -> None:
40
# If user explicitly specified a config file, no need to warn
41
return
42
43
- git_project_root = git.find_git_project_root()
44
cfg_search_paths = [Path(".")]
45
- if git_project_root:
+ if (git_project_root := git.find_git_project_root()):
46
cfg_search_paths.append(git_project_root)
47
48
for path in cfg_search_paths:
0 commit comments