]>
git.ipfire.org Git - thirdparty/systemd.git/blob - tools/add-git-hook.sh
2 # SPDX-License-Identifier: LGPL-2.1-or-later
5 cd "$MESON_SOURCE_ROOT"
7 if [ ! -f .git
/hooks
/pre-commit.sample
-o -f .git
/hooks
/pre-commit
]; then
11 cp -p .git
/hooks
/pre-commit.sample .git
/hooks
/pre-commit
12 chmod +x .git
/hooks
/pre-commit
13 echo 'Activated pre-commit hook'