diff --git a/lib/entry-points.js b/lib/entry-points.js index 21b19f520..61524b070 100644 --- a/lib/entry-points.js +++ b/lib/entry-points.js @@ -147111,7 +147111,7 @@ var getGitRoot = async function(sourceRoot) { ["rev-parse", "--show-toplevel"], `Cannot find Git repository root from the source root ${sourceRoot}.` ); - return stdout.trim(); + return path4.normalize(stdout.trim()); } catch { return void 0; } diff --git a/src/git-utils.ts b/src/git-utils.ts index 2e042e361..da1189035 100644 --- a/src/git-utils.ts +++ b/src/git-utils.ts @@ -245,7 +245,7 @@ export const getGitRoot = async function ( ["rev-parse", "--show-toplevel"], `Cannot find Git repository root from the source root ${sourceRoot}.`, ); - return stdout.trim(); + return path.normalize(stdout.trim()); } catch { // Errors are already logged by runGitCommand() return undefined;