gitHooksDir property

String? get gitHooksDir

Implementation

String? get gitHooksDir {
  final gitDir = this.gitDir;

  if (gitDir == null) {
    logger.err('Could not find .git directory');
    return null;
  }

  return fs.directory(p.join(gitDir, 'hooks')).path;
}