Skip to content

Commit 0bf7dd3

Browse files
uittorioPmyl
andauthored
chore(definitelyTyped): prevent cloning the entire history of definitely typed so it will be faster (#399)
Co-authored-by: Pmyl <[email protected]>
1 parent 4350ef9 commit 0bf7dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

definitelyTypedTests/src/installTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const PARALLEL_NPM_INSTALL = 20;
2222
})();
2323

2424
function cloneRepository() {
25-
const command = `git clone https://github.com/DefinitelyTyped/DefinitelyTyped.git ${definitelyTyped.folder}`;
25+
const command = `git clone --depth 1 https://github.com/DefinitelyTyped/DefinitelyTyped.git ${definitelyTyped.folder}`;
2626
console.log(`Cloning repository using ${command}`);
2727

2828
return execPromise(command)

0 commit comments

Comments
 (0)