diff options
author | RĂ©mi Vanicat <vanicat@debian.org> | 2007-11-13 20:08:32 +0100 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2007-11-14 13:25:40 -0500 |
commit | 146c72298aea05c64df89d40f01c6136f70d3fda (patch) | |
tree | 0246e7dff8a0387db6e8fc6ebd26d07f24ac37f7 /post-apt.d/50git-commit | |
parent | 9346843fa6da3b598fc970238ff2b3a374bd80cd (diff) |
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
Diffstat (limited to 'post-apt.d/50git-commit')
-rwxr-xr-x | post-apt.d/50git-commit | 2 |
1 files changed, 1 insertions, 1 deletions
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 |