Support shallow clone
Now, there are two options of downloading code for CI, fetch and clone. It will be very slow/network-consuming for a project with large history when using
git already covers this case with
--depth option. It's better for Gitlab CI to expose this ability.