hooks: make sure hooks directory exists before writing hooks
commit85e92c7d5974d6a590607510f1262104bef7ea79
authorKyle J. McKay <mackyle@gmail.com>
Mon, 17 Nov 2014 16:59:40 +0000 (17 08:59 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 17 Nov 2014 16:59:40 +0000 (17 08:59 -0800)
treeca5cace8ba61a7f567fadf4907ac42c6fd32477f
parentaf9c50c1c92828f58645dcaec8bc9d092928894f
hooks: make sure hooks directory exists before writing hooks

Although unlikely, if the template directory that Git uses to
copy the initial hooks from does not exist or is empty then Git
will never create a hooks subdirectory in newly initialized .git
directories.

Since we copy in several hooks that would cause our copies to fail.

Instead create the hooks directory if it does not already exist
before attempting to write any hooks.
Girocco/Project.pm
toolbox/update-all-hooks.sh