getLocalHooksDirectory method
Implementation
Future<Directory> getLocalHooksDirectory() async {
final repositoryRoot = await gitDirectoryRoot;
final directory = Directory((join(repositoryRoot.path, '.git/hooks')));
if (!await directory.exists()) {
await directory.create();
}
await setCoreHooksPath(directory);
return directory;
}