setCoreHooksPath method
Implementation
Future<void> setCoreHooksPath(Directory directory) async {
final repositoryRoot = await gitDirectoryRoot;
final relativePath = relative(directory.path, from: repositoryRoot.path);
await processHelper.executeCommand(
"git",
["config", "core.hooksPath", relativePath],
workingDirectory: repositoryRoot.path,
);
}