diff --git a/tools/update/main.ts b/tools/update/main.ts index 82e9f4ec00..5967abe61c 100644 --- a/tools/update/main.ts +++ b/tools/update/main.ts @@ -707,7 +707,7 @@ async function gitClone(protocol: Protocol, fullRepoName: string, dir: string, b console.error(`unsupported protocol: ${protocol}`) return } - await exec(`git clone ${branch ? `-b ${branch} ` : ""}${prefix}${fullRepoName} ${dir}`) + await exec(`git clone --depth 1 ${branch ? `-b ${branch} ` : ""}${prefix}${fullRepoName} ${dir}`) } async function runWithConsoleGroup(func: () => Promise): Promise {