Skip to content

Commit

Permalink
fix: include all branch tips for shallow clone in deploy command (#5828)
Browse files Browse the repository at this point in the history
  • Loading branch information
sivapalan committed Oct 29, 2021
1 parent 3b66c68 commit 8c12983
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/docusaurus/src/commands/deploy.ts
Expand Up @@ -168,7 +168,9 @@ Try using DEPLOYMENT_BRANCH=main or DEPLOYMENT_BRANCH=master`);
path.join(os.tmpdir(), `${projectName}-${deploymentBranch}`),
);
if (
shellExecLog(`git clone --depth 1 ${remoteBranch} ${toPath}`).code !== 0
shellExecLog(
`git clone --depth 1 --no-single-branch ${remoteBranch} ${toPath}`,
).code !== 0
) {
throw new Error(`Running "git clone" command in "${toPath}" failed.`);
}
Expand Down

0 comments on commit 8c12983

Please sign in to comment.