diff --git a/extensions/git/src/git.ts b/extensions/git/src/git.ts index 10de81491213c74dfb42a2f08e4dd5065f4c5f58..3cd0dadfdac2a3e2009d9bf7beacfe55568ac958 100644 --- a/extensions/git/src/git.ts +++ b/extensions/git/src/git.ts @@ -345,9 +345,9 @@ export class Git { return folderPath; } - async getRepositoryRoot(path: string): Promise { - const result = await this.exec(path, ['rev-parse', '--show-toplevel']); - return result.stdout.trim(); + async getRepositoryRoot(repositoryPath: string): Promise { + const result = await this.exec(repositoryPath, ['rev-parse', '--show-toplevel']); + return path.normalize(result.stdout.trim()); } async exec(cwd: string, args: string[], options: any = {}): Promise {