Closed lgersman closed 10 months ago
I would like to use the chezmoi template variables like {{ .chezmoi.hostname }} (and probably some more) in my commitMessageTemplate defined in chezmoi.toml
{{ .chezmoi.hostname }}
chezmoi.toml
Example:
[git] autoPush = true autoCommit = true commitMessageTemplate="host {{ .chezmoi.hostname }}"
In the current version (chezmoi version v2.40.4) this yields an error :
chezmoi version v2.40.4
chezmoi: template: commit_message:1:16: executing "commit_message" at <.chezmoi.hostname>: can't evaluate field chezmoi in type *git.Status
This is already fixed in #3322.
Is your feature request related to a problem? Please describe.
I would like to use the chezmoi template variables like
{{ .chezmoi.hostname }}
(and probably some more) in my commitMessageTemplate defined inchezmoi.toml
Example:
In the current version (
chezmoi version v2.40.4
) this yields an error :