summaryrefslogtreecommitdiff
path: root/init.d/40git-pre-commit-hook
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2007-11-05 16:12:59 -0500
committerJoey Hess <joey@kodama.kitenet.net>2007-11-05 16:12:59 -0500
commit7c73a6613efddc2635d021c075651f367a273062 (patch)
tree46fd4a6a1b2b04fcde3e04d30e66fc9800a3e1be /init.d/40git-pre-commit-hook
parent34320131ce680fe03febc9f4d6b438f05e548cbc (diff)
cd to /etc before running the hook
Diffstat (limited to 'init.d/40git-pre-commit-hook')
-rwxr-xr-xinit.d/40git-pre-commit-hook1
1 files changed, 1 insertions, 0 deletions
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