From 146c72298aea05c64df89d40f01c6136f70d3fda Mon Sep 17 00:00:00 2001 From: RĂ©mi Vanicat Date: Tue, 13 Nov 2007 20:08:32 +0100 Subject: Render option to git commit configurable When etckeeper commit something it use a default message that can be configured, but not easily edited on a case by case basis. To make this possible, and to give other way to customize commit, I add a configuration file that contain for now only one option: GIT_COMMIT_OPTION that can contain option given to git commit when run by etckeeper --- post-apt.d/50git-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'post-apt.d') diff --git a/post-apt.d/50git-commit b/post-apt.d/50git-commit index 6eb3434..fe5eb95 100755 --- a/post-apt.d/50git-commit +++ b/post-apt.d/50git-commit @@ -8,5 +8,5 @@ if [ -d .git ]; then message="committing changes after apt run" # ignore exit code since it exits nonzero if there is nothing to do - git commit -m "$message" || true + git commit $GIT_COMMIT_OPTION -m "$message" || true fi -- cgit v1.2.3