aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/setup-hooks
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-12-03 19:10:10 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2022-12-03 19:20:07 +0100
commite23958ba3b639a24f59c32a018efdbaddd4ca98b (patch)
tree376351d2c130bb5bea8f4ab2da1b5e6afc7b3e1c /scripts/setup-hooks
parentfix preludes in bash scripts (diff)
downloadcimple-e23958ba3b639a24f59c32a018efdbaddd4ca98b.tar.gz
cimple-e23958ba3b639a24f59c32a018efdbaddd4ca98b.zip
make .gitattributes more consistent
Diffstat (limited to 'scripts/setup-hooks')
-rwxr-xr-xscripts/setup-hooks16
1 files changed, 0 insertions, 16 deletions
diff --git a/scripts/setup-hooks b/scripts/setup-hooks
deleted file mode 100755
index f4d1b1f..0000000
--- a/scripts/setup-hooks
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env bash
-
-set -o errexit -o nounset -o pipefail
-shopt -s inherit_errexit lastpipe
-
-script_dir="$( dirname -- "${BASH_SOURCE[0]}" )"
-script_dir="$( cd -- "$script_dir" && pwd )"
-
-cd -- "$script_dir"
-
-gitdir="$( git rev-parse --git-dir )"
-hooks_dir="$gitdir/hooks"
-
-symlink_dest="$( realpath "--relative-to=$hooks_dir" -- "$script_dir/pre-commit" )"
-
-ln -fs -- "$symlink_dest" "$hooks_dir/"