import { findGitRoot } from '../paths' ; import { git } from 'workspace-tools' ; export function isGitAvailable ( cwd ) { const result = git ( [ '--version' ] ) ; const gitRoot = findGitRoot ( cwd ) ; return result . success && gitRoot ; }