Skip to content

Commit

Permalink
feat: treeless clone
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Nov 19, 2024
1 parent 0b7567f commit 3b57c73
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/git-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,15 @@ export async function setRepo(inps: Inputs, remoteURL: string, workDir: string):
try {
result.exitcode = await exec.exec(
'git',
['clone', '--depth=1', '--single-branch', '--branch', inps.PublishBranch, remoteURL, workDir],
[
'clone',
'--filter=tree:0',
'--single-branch',
'--branch',
inps.PublishBranch,
remoteURL,
workDir
],
options
);
if (result.exitcode === 0) {
Expand Down

0 comments on commit 3b57c73

Please sign in to comment.