Skip to content

Commit e88e1d8

Browse files
committed
chore: tweaks > clone-action.ts
bin/utils/clone-action.ts
1 parent b01e56b commit e88e1d8

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

bin/utils/clone-action.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ export const cloneAction = async (
5555
await fs.promises.mkdir(tempDir, { recursive: true })
5656
await spawn("git", [
5757
"clone",
58+
repoUrl,
59+
tempDir,
60+
"--branch",
61+
config.branch,
5862
"--depth=1",
59-
"--filter=blob:none",
60-
"--sparse",
6163
"--single-branch",
6264
"--no-tags",
63-
"--branch",
64-
config.branch,
65-
repoUrl,
66-
tempDir,
65+
"--filter=blob:none",
66+
"--sparse",
6767
])
6868

6969
await spawn(
@@ -88,8 +88,7 @@ export const cloneAction = async (
8888
tempDir,
8989
"--branch",
9090
config.branch,
91-
"--depth",
92-
"1",
91+
"--depth=1",
9392
"--single-branch",
9493
"--no-tags",
9594
...(options.recursive ? ["--recursive"] : []),

0 commit comments

Comments
 (0)