Skip to content

Commit

Permalink
Shallow git clone (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillForan authored Jan 2, 2024
1 parent 6559118 commit b0ce79d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ lint._report = async (options, spinner) => {
}

temporary = temporaryDirectory();
await execa('git', ['clone', '--', options.filename, temporary]);
await execa('git', ['clone', '--depth', '1', '--', options.filename, temporary]);

const readme = findReadmeFile(temporary);
if (!readme) {
Expand Down

0 comments on commit b0ce79d

Please sign in to comment.