summaryrefslogtreecommitdiff
path: root/hooks/setup-hooks
diff options
context:
space:
mode:
authorAmit Kumar <amitkma@e.email>2021-04-27 22:21:34 +0530
committerAmit Kumar <amitkma@e.email>2021-04-27 23:23:49 +0530
commit0f69164b62c5df0374bc0431de62267e8f2e750a (patch)
tree8112c170d0cb06c4de52af126bd2551d7cc38b76 /hooks/setup-hooks
parent05fca2863a198db5d58fd55db6c5d7b67fd46e58 (diff)
Make pre-commit executable
Diffstat (limited to 'hooks/setup-hooks')
-rwxr-xr-xhooks/setup-hooks4
1 files changed, 4 insertions, 0 deletions
diff --git a/hooks/setup-hooks b/hooks/setup-hooks
new file mode 100755
index 0000000..4f48be0
--- /dev/null
+++ b/hooks/setup-hooks
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# This script setups symlink from .git/hooks directory to this directory.
+ln -s -f ../../hooks/pre-commit .git/hooks/pre-commit \ No newline at end of file