Skip to content

Commit b8a3606

Browse files
committed
perf: use shallow clone
1 parent a0edb11 commit b8a3606

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const run = async (): Promise<void> => {
4343
} else {
4444
const git = simpleGit()
4545
const gistDir = await createTempDirectory()
46-
await git.clone(`https://${token}@gist.github.com/${gistId}.git`, gistDir)
46+
await git.clone(`https://${token}@gist.github.com/${gistId}.git`, gistDir, { '--depth': 1 })
4747
await git.cwd(gistDir)
4848
await git.addConfig('user.name', process.env.GITHUB_ACTOR!)
4949
await git.addConfig('user.email', `${process.env.GITHUB_ACTOR}@users.noreply.github.com`)

0 commit comments

Comments
 (0)