]>
git.ipfire.org Git - thirdparty/systemd.git/blob - tools/git-setup.sh
b5903b4ca1005f2de9a90105becc63690143f6b1
2 # SPDX-License-Identifier: LGPL-2.1-or-later
5 cd "${MESON_SOURCE_ROOT:?}"
9 if [ -f .git
/hooks
/pre-commit.sample
] && [ ! -f .git
/hooks
/pre-commit
]; then
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'