From f82235032f162aae0bb08828d45c6306e60dcd29 Mon Sep 17 00:00:00 2001 From: Mathieu Clabaut Date: Fri, 21 Dec 2007 15:47:30 -0600 Subject: hg and git subrepo creation (hg is for now a copy of git) --- git/pre-commit.d/20warn-special-file | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 git/pre-commit.d/20warn-special-file (limited to 'git/pre-commit.d/20warn-special-file') diff --git a/git/pre-commit.d/20warn-special-file b/git/pre-commit.d/20warn-special-file new file mode 100644 index 0000000..cb4d019 --- /dev/null +++ b/git/pre-commit.d/20warn-special-file @@ -0,0 +1,9 @@ +#!/bin/sh +set -e +special=$(find -not -type d -not -type f -not -type l | grep -v /.git/) || true +if [ -n "$special" ]; then + echo "etckeeper warning: special files could cause problems with git:" >&2 + echo "$special" >&2 +fi + +true -- cgit v1.2.3