build: Make sure the 'hooks' directory for each submodule exists

git-init may not create the hooks directory with the default sample
hooks in some scenarios, for example if the user has set the
init.templateDir configuration option in their global git config, and
if that directory does not include a hooks subdirectory then no hooks
directory will be created by git-init, including for clones and
submodule initializations.

Change-Id: I09ce586fd36d3db9224bbbeed5d7721d6635ea7b
1 file changed