diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-05-11 21:18:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-05-11 21:18:32 +0200 |
commit | a7a7358fb32e0e2b7c21dfa76ff993253994d488 (patch) | |
tree | 9c6ed0388e385f14d06de14357e484a5a65fb8bc | |
parent | 37c36202c6f98faabe5fdbc3efe3174997b2466e (diff) |
git: activate default commit hook
-rwxr-xr-x | bootstrap.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index cb74121e..c7737a6e 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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 |