Optmize git clone.
Merge pull request #3016 from dart-lang/optimize_clone

Optmize git clone.