Skip to content

Commit 3b57c73

Browse files
committed
feat: treeless clone
1 parent 0b7567f commit 3b57c73

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/git-utils.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,15 @@ export async function setRepo(inps: Inputs, remoteURL: string, workDir: string):
105105
try {
106106
result.exitcode = await exec.exec(
107107
'git',
108-
['clone', '--depth=1', '--single-branch', '--branch', inps.PublishBranch, remoteURL, workDir],
108+
[
109+
'clone',
110+
'--filter=tree:0',
111+
'--single-branch',
112+
'--branch',
113+
inps.PublishBranch,
114+
remoteURL,
115+
workDir
116+
],
109117
options
110118
);
111119
if (result.exitcode === 0) {

0 commit comments

Comments
 (0)