From 01950495e1cf950ed86b2f7ea4b5512ed243af23 Mon Sep 17 00:00:00 2001 From: Salvatore Bonaccorso Date: Fri, 29 Dec 2017 19:17:02 +0000 Subject: Add pre-commit hook to check syntax git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@59028 e39458fd-73e7-0310-bf30-c45bca0a0e42 --- conf/pre-commit | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 conf/pre-commit (limited to 'conf') diff --git a/conf/pre-commit b/conf/pre-commit new file mode 100755 index 0000000000..f097a88abd --- /dev/null +++ b/conf/pre-commit @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +if [ -z "${GIT_DIR}" ]; then + echo "GIT_DIR not set" 1>&2 + exit 1 +fi + +exec 1>&2 + +make check-syntax -- cgit v1.2.3