diff --git a/packages/docusaurus/src/commands/deploy.ts b/packages/docusaurus/src/commands/deploy.ts index 70c1f5ecfd..0a1707ddf7 100644 --- a/packages/docusaurus/src/commands/deploy.ts +++ b/packages/docusaurus/src/commands/deploy.ts @@ -223,7 +223,7 @@ You can also set the deploymentBranch property in docusaurus.config.js .`); // directory, check out a clean deployment branch and add remote. if ( shellExecLog( - `git clone --depth 1 --branch ${deploymentBranch} ${deploymentRepoURL} ${toPath}`, + `git clone --depth 1 --branch ${deploymentBranch} ${deploymentRepoURL} "${toPath}"`, ).code === 0 ) { shellExecLog('git rm -rf .');