diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2007-11-05 16:12:59 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2007-11-05 16:12:59 -0500 |
commit | 7c73a6613efddc2635d021c075651f367a273062 (patch) | |
tree | 46fd4a6a1b2b04fcde3e04d30e66fc9800a3e1be | |
parent | 34320131ce680fe03febc9f4d6b438f05e548cbc (diff) |
cd to /etc before running the hook
-rwxr-xr-x | init.d/40git-pre-commit-hook | 1 |
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 |