mirror of
https://github.com/unisonweb/unison.git
synced 2024-11-12 04:34:38 +03:00
10 lines
273 B
Bash
Executable File
10 lines
273 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
GIT_DIR=$(git rev-parse --git-dir)
|
|
|
|
echo "Installing hooks..."
|
|
# this command creates symlink to our pre-commit script
|
|
ln -s ../../scripts/pre-commit.bash $GIT_DIR/hooks/pre-commit
|
|
ln -s ../../scripts/pre-push.bash $GIT_DIR/hooks/pre-push
|
|
echo "Done!"
|