From 7c73a6613efddc2635d021c075651f367a273062 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 5 Nov 2007 16:12:59 -0500 Subject: cd to /etc before running the hook --- init.d/40git-pre-commit-hook | 1 + 1 file changed, 1 insertion(+) diff --git a/init.d/40git-pre-commit-hook b/init.d/40git-pre-commit-hook index 360be8c..a5b45d3 100755 --- a/init.d/40git-pre-commit-hook +++ b/init.d/40git-pre-commit-hook @@ -10,6 +10,7 @@ else # pre-commit hook for etckeeper. Calls etckeeper-pre-commit to store metadata # and do sanity checks. set -e +cd /etc etckeeper-pre-commit EOF chmod +x .git/hooks/pre-commit -- cgit v1.2.3