From efcc4814eec139222d93311a92e5345d1d1dd2a5 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 14 May 2020 16:48:56 +0100 Subject: [PATCH] Nuke hooks --- hooks/install.sh | 5 ----- hooks/pre-commit | 22 ---------------------- 2 files changed, 27 deletions(-) delete mode 100755 hooks/install.sh delete mode 100755 hooks/pre-commit diff --git a/hooks/install.sh b/hooks/install.sh deleted file mode 100755 index f8aa331ff..000000000 --- a/hooks/install.sh +++ /dev/null @@ -1,5 +0,0 @@ -#! /bin/bash - -DOT_GIT="$(dirname $0)/../.git" - -ln -s "../../hooks/pre-commit" "$DOT_GIT/hooks/pre-commit" \ No newline at end of file diff --git a/hooks/pre-commit b/hooks/pre-commit deleted file mode 100755 index 6f98b813c..000000000 --- a/hooks/pre-commit +++ /dev/null @@ -1,22 +0,0 @@ -#! /bin/bash - -set -eu - -# make the GIT_DIR and GIT_INDEX_FILE absolute, before we change dir -export GIT_DIR=$(readlink -f `git rev-parse --git-dir`) -if [ -n "${GIT_INDEX_FILE:+x}" ]; then - export GIT_INDEX_FILE=$(readlink -f "$GIT_INDEX_FILE") -fi - -# create a temp dir. The `trap` incantation will ensure that it is removed -# again when this script completes. -tmpdir=`mktemp -d` -trap 'rm -rf "$tmpdir"' EXIT -cd "$tmpdir" - -# get a clean copy of the index (ie, what has been `git add`ed), so that we can -# run the checks against what we are about to commit, rather than what is in -# the working copy. -git checkout-index -a - -./scripts/find-lint.sh fast