Skip to content

Commit 090acff

Browse files
authored
Merge pull request #25 from YOCKOW/1.0.x/development
Don't clone swiftenv repo deeply.
2 parents fc31ca2 + 505eb2a commit 090acff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function prepare_directory() {
2929
}
3030
async function download_swiftenv() {
3131
await run('Download swiftenv...', async () => {
32-
await exec.exec('git', ['clone', 'https://github.com/kylef/swiftenv.git', swiftenvDirectory]);
32+
await exec.exec('git', ['clone', '--depth', '1', 'https://github.com/kylef/swiftenv.git', swiftenvDirectory]);
3333
core.addPath(swiftenvBinDirectory);
3434
core.exportVariable('SWIFTENV_ROOT', swiftenvDirectory);
3535
});

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async function prepare_directory(): Promise<void> {
2525

2626
async function download_swiftenv(): Promise<void> {
2727
await run('Download swiftenv...', async () => {
28-
await exec.exec('git', ['clone', 'https://github.com/kylef/swiftenv.git', swiftenvDirectory]);
28+
await exec.exec('git', ['clone', '--depth', '1', 'https://github.com/kylef/swiftenv.git', swiftenvDirectory]);
2929
core.addPath(swiftenvBinDirectory);
3030
core.exportVariable('SWIFTENV_ROOT', swiftenvDirectory)
3131
})

0 commit comments

Comments
 (0)