diff options
| author | 2026-04-21 01:23:26 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:23:26 +0100 | |
| commit | c8c6fa4fb6685ab4914ff014165a382e9d2db842 (patch) | |
| tree | 3fe67deecec338dd11954c83b7bd25b8e5a76b15 /.githooks | |
| parent | 0cd53c5bbad1d9d16e3e65929f9d730dd9ca4ca8 (diff) | |
| download | dotfiles-c8c6fa4fb6685ab4914ff014165a382e9d2db842.tar.gz dotfiles-c8c6fa4fb6685ab4914ff014165a382e9d2db842.tar.bz2 dotfiles-c8c6fa4fb6685ab4914ff014165a382e9d2db842.zip | |
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.
Diffstat (limited to '.githooks')
| -rwxr-xr-x | .githooks/post-commit | 2 |
1 files changed, 1 insertions, 1 deletions
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)" |
