Do not assume regular Git .git/hooks dir
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Aug 2017 20:31:03 +0000 (13:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Aug 2017 20:31:26 +0000 (13:31 -0700)
commite97aebd8fed255507fd17ef37a06b042ebed7e77
tree894491ae235da759f03ba3d2b5b8a895e3f166ce
parent5c3d0ce3e09bf070bb3c89caa9d88f25d4a39283
Do not assume regular Git .git/hooks dir

Apparently Gitlab doesn’t create .git/hooks, like regular Git does.
Problem reported by Ted Zlatanov in:
http://lists.gnu.org/archive/html/emacs-devel/2017-08/msg00380.html
* autogen.sh (git_sample_hook_src): New function.  Use it to work
even if .git/hooks or its samples do not exist.
autogen.sh