mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
git: activate default commit hook
This commit is contained in:
parent
37c36202c6
commit
a7a7358fb3
1 changed files with 6 additions and 0 deletions
|
|
@ -40,6 +40,12 @@ run_versioned() {
|
|||
|
||||
set -ex
|
||||
|
||||
if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
|
||||
echo "Activating pre-commit hook."
|
||||
cp -av .git/hooks/pre-commit.sample .git/hooks/pre-commit
|
||||
chmod -c +x .git/hooks/pre-commit
|
||||
fi
|
||||
|
||||
# We check for this here, because if pkg-config is not found in the
|
||||
# system, it's likely that the pkg.m4 macro file is also not present,
|
||||
# which will make PKG_PROG_PKG_CONFIG be undefined and the generated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue