From e2853acb5205d87d3a01e8e602abaf45489d4207 Mon Sep 17 00:00:00 2001 From: dAniel hAhler Date: Wed, 12 Mar 2008 01:53:48 +0100 Subject: Add commit hook script for bzr to add new files Committing fails with "bzr", if there are only new files and new files probably never get added. This script adds the files during the "commit" process. --- commit.d/30bzr-add | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 commit.d/30bzr-add (limited to 'commit.d/30bzr-add') diff --git a/commit.d/30bzr-add b/commit.d/30bzr-add new file mode 100755 index 0000000..62e4bac --- /dev/null +++ b/commit.d/30bzr-add @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +if [ "$VCS" = bzr ] && [ -d .bzr ]; then + if ! bzr add .; then + echo "etckeeper warning: bzr add failed" >&2 + fi +fi -- cgit v1.2.3