diff options
author | Brandon Bayer <bbayer@multitech.com> | 2016-09-29 16:25:31 -0500 |
---|---|---|
committer | Brandon Bayer <bbayer@multitech.com> | 2016-09-29 16:25:31 -0500 |
commit | 3ffa09de192d81305acd2233167eae91de856e3f (patch) | |
tree | e4efdb2eb869e5e98db73eabc0469e1632707374 /setup.sh | |
parent | 58cde28b59eb65dc34c0a36b6ab30f42128c6df6 (diff) | |
download | mlinux-3ffa09de192d81305acd2233167eae91de856e3f.tar.gz mlinux-3ffa09de192d81305acd2233167eae91de856e3f.tar.bz2 mlinux-3ffa09de192d81305acd2233167eae91de856e3f.zip |
chore: add pre-commit/pre-push hooks to prevent GitLab submodules on master
Diffstat (limited to 'setup.sh')
-rwxr-xr-x | setup.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3,6 +3,11 @@ set -e echo "" +echo "Setting up git hooks..." +ln -s ../../scripts/git-hooks/pre-commit .git/hooks/pre-commit +ln -s ../../scripts/git-hooks/pre-push .git/hooks/pre-push + +echo "" echo "Updating git submodules..." git submodule update --init |