Skip to content

Commit

Permalink
blast_repo: only get the last commit (#57)
Browse files Browse the repository at this point in the history
Should make local clone much faster
  • Loading branch information
kevmoo authored Feb 7, 2023
1 parent aaf485c commit b3b48db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/blast_repo/lib/src/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ const packageName = 'blast_repo';
Future<void> cloneGitHubRepoToPath(String slug, String path) {
printHeader('Cloning repo $slug');
return runGit(
['clone', 'https://github.com/$slug', path],
[
'clone',
'--depth',
'1',
'https://github.com/$slug',
path,
],
echoOutput: true,
);
}
Expand Down

0 comments on commit b3b48db

Please sign in to comment.