Evergreen supports setting the --depth parameter for git clone, which can help to speed up the cloning process significantly.
If the used commit is older than the parameter set via --depth, then evergreen falls back to doing git fetch --unshallow as discussed here, which pulls the remaining commits.