From c8c6fa4fb6685ab4914ff014165a382e9d2db842 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:23:26 +0100 Subject: fix: use 'chezmoi init --apply' to regenerate config on template changes When .chezmoi.toml.tmpl changes (e.g. adding [status] exclude=scripts), plain 'chezmoi apply' warns and keeps using the stale config. Using 'init --apply' regenerates the config from the template and applies in one step. Status does a silent init first for the same reason. --- .githooks/post-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.githooks') diff --git a/.githooks/post-commit b/.githooks/post-commit index d2d7eba..ce41b5c 100755 --- a/.githooks/post-commit +++ b/.githooks/post-commit @@ -1,2 +1,2 @@ #!/bin/sh -chezmoi apply -S "$(git rev-parse --show-toplevel)" +chezmoi init --apply -S "$(git rev-parse --show-toplevel)" -- cgit v1.2.3-70-g09d2