mirror of
https://github.com/github/codeql-action
synced 2026-10-07 00:30:17 +03:00
Normalise the results of getGitRoot
This commit is contained in:
Generated
+1
-1
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user