Skip to content

Commit f0c7a51

Browse files
committed
feat: blobless clone
1 parent 0b7567f commit f0c7a51

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/git-utils.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,16 @@ 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=blob:none',
111+
'--depth=1',
112+
'--single-branch',
113+
'--branch',
114+
inps.PublishBranch,
115+
remoteURL,
116+
workDir
117+
],
109118
options
110119
);
111120
if (result.exitcode === 0) {

0 commit comments

Comments
 (0)