From ef70e3d7e62671d0cadb2731e6965768f73ca290 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 3 Jan 2008 21:12:05 -0500 Subject: * Added configuration options for highlevel and lowlevel package managers in etckeeper.conf. * Only install apt hooks if apt is used. * Only add backup conffile exclusion to gitignore if dpkg is used. * Rename pre/post-apt.d to pre/post-install.d to allow the same directories to be used for other package managers. * Use the name of the highlevel package manager in commit messages. --- post-install.d/50git-commit | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 post-install.d/50git-commit (limited to 'post-install.d/50git-commit') diff --git a/post-install.d/50git-commit b/post-install.d/50git-commit new file mode 100755 index 0000000..78247ca --- /dev/null +++ b/post-install.d/50git-commit @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +if [ -d .git ]; then + message="committing changes after $HIGHLEVEL_PACKAGE_MANAGER run" + + # ignore exit code since it exits nonzero if there is nothing to do + git commit $GIT_COMMIT_OPTIONS -m "$message" || true +fi -- cgit v1.2.3