Adds logging for git location

This commit is contained in:
Eric Amodio
2016-11-12 14:03:21 -05:00
parent 46e2378779
commit e31a1a3473

View File

@@ -56,6 +56,7 @@ export default class Git {
static async repoPath(cwd: string, gitPath?: string) {
git = await findGitPath(gitPath);
Logger.log(`Git found: ${git.version} @ ${git.path === 'git' ? 'PATH' : git.path}`);
let data = await gitCommand(cwd, 'rev-parse', '--show-toplevel');
data = data.replace(/\r?\n|\r/g, '').replace(/\\/g, '/');