From 4fe47e842a6d0462ddf26f4f0fd7641648f6af29 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 5 Nov 2007 16:28:55 -0500 Subject: implement the post-apt hook --- post-apt.d/75git-commit | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 post-apt.d/75git-commit (limited to 'post-apt.d/75git-commit') diff --git a/post-apt.d/75git-commit b/post-apt.d/75git-commit new file mode 100755 index 0000000..0a84fbd --- /dev/null +++ b/post-apt.d/75git-commit @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +# TODO: figure out what packages were acted on by the apt run, and include +# that info in the commit message +message="committing changes after apt run" + +if ! git commit -m "$message"; then + echo "etckeeper warning: git-commit failed" +fi -- cgit v1.2.3