mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-26 17:25:06 -05:00
Adds logging for git location
This commit is contained in:
@@ -56,6 +56,7 @@ export default class Git {
|
|||||||
|
|
||||||
static async repoPath(cwd: string, gitPath?: string) {
|
static async repoPath(cwd: string, gitPath?: string) {
|
||||||
git = await findGitPath(gitPath);
|
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');
|
let data = await gitCommand(cwd, 'rev-parse', '--show-toplevel');
|
||||||
data = data.replace(/\r?\n|\r/g, '').replace(/\\/g, '/');
|
data = data.replace(/\r?\n|\r/g, '').replace(/\\/g, '/');
|
||||||
|
|||||||
Reference in New Issue
Block a user