From 0cd53c5bbad1d9d16e3e65929f9d730dd9ca4ca8 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:23:26 +0100 Subject: fix: pass -S . to chezmoi so apply/status work from any CWD Without an explicit source, chezmoi defaults to ~/.local/share/chezmoi which doesn't exist on this setup. The post-commit hook uses git rev-parse so it works even if the hook is run from a subdirectory. --- .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 83acb4f..d2d7eba 100755 --- a/.githooks/post-commit +++ b/.githooks/post-commit @@ -1,2 +1,2 @@ #!/bin/sh -chezmoi apply +chezmoi apply -S "$(git rev-parse --show-toplevel)" -- cgit v1.2.3-70-g09d2