fix(git): make initial clone a shallow clone

pull/201/head
Jens van Almsick 10 months ago committed by GitHub
parent 7376cdbabc
commit 00258b8409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -87,6 +87,9 @@ public sealed class GitRepository : IGitRepository
args.AddRange(new[] {"-b", branch});
}
// create a shallow clone to make initial checkout faster
args.AddRange(new[] {"--depth", "1"});
args.AddRange(new[] {cloneUrl.ToString(), "."});
await RunGitCmd(args);
}

Loading…
Cancel
Save