Normalise the results of getGitRoot

This commit is contained in:
Michael B. Gale
2026-09-22 12:32:16 +01:00
parent f5716fadf4
commit 6fb4a88ed6
2 changed files with 2 additions and 2 deletions

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;