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 818fa1a commit 2f1230dCopy full SHA for 2f1230d
commitizen/cz/customize/customize.py
@@ -69,5 +69,8 @@ def schema(self) -> str:
69
70
def info(self) -> str:
71
if info_path := self.custom_settings.get("info_path"):
72
- return Path(info_path).read_text(encoding=self.config.settings["encoding"])
+ info_file = Path(info_path)
73
+ if not info_file.is_absolute():
74
+ info_file = self.config.path.parent / info_file
75
+ return info_file.read_text(encoding=self.config.settings["encoding"])
76
return self.custom_settings.get("info") or ""
0 commit comments