]>
Commit | Line | Data |
---|---|---|
7629744a | 1 | #!/bin/sh |
2 | set -eu | |
003c8879 ZJS |
3 | |
4 | cd "$MESON_SOURCE_ROOT" | |
5 | ||
6 | if [ ! -f .git/hooks/pre-commit.sample -o -f .git/hooks/pre-commit ]; then | |
7 | exit 2 # not needed | |
8 | fi | |
9 | ||
10 | cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit | |
11 | chmod +x .git/hooks/pre-commit | |
12 | echo 'Activated pre-commit hook' |