Skip to content

Commit

Permalink
fix: include all branch tips for shallow clone in deploy command
Browse files Browse the repository at this point in the history
Fixes #5827
  • Loading branch information
sivapalan committed Oct 29, 2021
1 parent dc5a0b7 commit 61af1c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/docusaurus/src/commands/deploy.ts
Original file line number Diff line number Diff line change
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 61af1c4

Please sign in to comment.