Skip to content
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
2ccfbf4
AE-0001: Convert cygwin style path to Windows path style (returned by…
Sep 29, 2021
4785ae7
: Fix variable anme
Sep 29, 2021
330593c
Merge branch 'main' into fix-msys2-git-rev-parse
Aug 29, 2022
0253e81
Revert merge issue
Aug 29, 2022
245f01a
Revert merge problem
Aug 29, 2022
6c55e48
Merge branch 'main' into fix-msys2-git-rev-parse
zcsizmadia Aug 29, 2022
9619c8c
Remove warning
Aug 29, 2022
cd14478
Merge branch 'main' into fix-msys2-git-rev-parse
zcsizmadia Aug 29, 2022
6e5863d
Merge branch 'main' into fix-msys2-git-rev-parse
Aug 29, 2022
3e13a6b
Merge branch 'main' into fix-msys2-git-rev-parse
Aug 29, 2022
a68cf46
Merge branch 'main' into fix-msys2-git-rev-parse
Aug 30, 2022
42cfbeb
Merge branch 'main' into fix-msys2-git-rev-parse
zcsizmadia Aug 31, 2022
336c62e
Merge branch 'main' into fix-msys2-git-rev-parse
zcsizmadia Sep 4, 2022
a57eba7
Merge branch 'main' into fix-msys2-git-rev-parse
Dec 9, 2022
964ba7c
Merge branch 'main' into fix-msys2-git-rev-parse
Dec 9, 2022
10ef708
Merge branch 'main' into fix-msys2-git-rev-parse
Dec 9, 2022
04ca524
Merge branch 'main' into fix-msys2-git-rev-parse
Dec 19, 2022
4de5698
Merge branch 'main' into fix-msys2-git-rev-parse
Jan 17, 2023
4e09c1b
Merge branch 'main' into fix-msys2-git-rev-parse
Feb 27, 2023
b4f2b0b
Merge branch 'main' into fix-msys2-git-rev-parse
Apr 10, 2024
246ea66
Rename repoPath to repositoryRootPath
Apr 10, 2024
5215449
Merge branch 'main' into fix-msys2-git-rev-parse
zcsizmadia Apr 10, 2024
88727f6
Merge branch 'main' into fix-msys2-git-rev-parse
May 17, 2024
121b40d
Merge branch 'main' into fix-msys2-git-rev-parse
Oct 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions extensions/git/src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,13 @@ export class Git {

return path.normalize(pathUri.fsPath);
}

// MSYS2 Git (not Git for Windows) rev-parse returns Cygwin style path. (Git for Windows returns Windows style path with rev-parse)
// Convert Cygwin style path -> Windows style path
const cygpathRegex = /^\\([a-z])\\/;
if (cygpathRegex.test(repositoryRootPath)) {
return repositoryRootPath.replace(cygpathRegex, '$1:\\');
}
}

return repositoryRootPath;
Expand Down