diff --git a/packages/docusaurus-utils/src/vcs/gitUtils.ts b/packages/docusaurus-utils/src/vcs/gitUtils.ts index 1c9c50167b..5ed03ab224 100644 --- a/packages/docusaurus-utils/src/vcs/gitUtils.ts +++ b/packages/docusaurus-utils/src/vcs/gitUtils.ts @@ -334,7 +334,7 @@ The command returned exit code ${logger.code(result.exitCode)}: ${logger.subdue( // this command only works when inside submodules // otherwise it doesn't return anything when we are inside the main repo if (output) { - return output; + return fs.realpath.native(output); } return getGitRepoRoot(cwd); }