Skip to content

Commit 7754aee

Browse files
refactor: use fspath instead of path
Co-authored-by: yi_Xu <[email protected]>
1 parent 9b88e0a commit 7754aee

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/git/cli.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ async function _diffIndex(
3636
repository: Repository,
3737
options: string[] = []
3838
): Promise<Array<string>> {
39-
let cwd = repository.rootUri.path;
40-
// Hack to make handle Windows path from rootUri, since it should not appear as a root path.
41-
cwd = cwd.replace("/c:/", "c:/");
42-
39+
let cwd = repository.rootUri.fspath;
4340
const cmd = "diff-index";
4441
const fullOptions = [
4542
"--name-status",

0 commit comments

Comments
 (0)