Skip to content

Commit

Permalink
make add-git-hooks: succeed w/ .git/hooks missing
Browse files Browse the repository at this point in the history
  • Loading branch information
gc00 committed May 17, 2018
1 parent c43fc34 commit 2419583
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.in
Expand Up @@ -106,7 +106,9 @@ _hooksdir=.git/hooks
add-git-hooks: ${_hooksdir}/pre-commit ${_hooksdir}/post-rewrite

${_hooksdir}/%: util/hooks/%
cd ${_hooksdir} && ln -s ../../$< .
if test -d ${_hooksdir}; then \
cd ${_hooksdir} && ln -s ../../$< . ; \
fi

# Remove any stray src/config.h files that may still exist.
# If the developer accidentally leaves an old src/config.h in place (e.g.,
Expand Down

0 comments on commit 2419583

Please sign in to comment.