Normalise the results of getGitRoot

This commit is contained in:
Michael B. Gale
2026-09-22 16:25:47 +01:00
parent f5716fadf4
commit 6fb4a88ed6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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;