Browse Source

Merge pull request #303 from fancycode/githook_non_checkout

Only install git hook if cloned from git.
pull/304/head
Simon Eisenmann 9 years ago committed by GitHub
parent
commit
0c5c4ac8d4
  1. 2
      autogen.sh

2
autogen.sh

@ -1,10 +1,12 @@ @@ -1,10 +1,12 @@
#!/bin/sh
if [ -d ".git/hooks" ]; then
# the pre-commit hook performs various formatting checks
if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \); then \
rm -f .git/hooks/pre-commit; \
ln -s ../../src/hooks/pre-commit.hook .git/hooks/pre-commit; \
fi
fi
if [ -x "`which autoreconf 2>/dev/null`" ] ; then
exec autoreconf -ivf

Loading…
Cancel
Save