setHooksPath method
Implementation
Future<int?> setHooksPath() async {
try {
final success = await git.setHooksDir();
if (!success) {
throw Exception('Could not set hooks path');
}
} catch (e) {
logger
..err('Could not set hooks path')
..detail(e.toString());
return 1;
}
return null;
}