Is there any way to do this for GitLab CI [1]? I'm using GIT_DEPTH=1, but I'm not sure how to set refspecs. It's not too important right now since it only takes about 11 seconds to clone the git repo, but maybe it's a quick win as well.
> The following example makes the runner shallow clone to fetch only a given branch; it does not fetch any other branches nor tags.
https://docs.gitlab.com/ee/ci/large_repositories/#shallow-cl...
GIT_FETCH_EXTRA_FLAGS accepts all options of the git fetch command
> The default flags are:
GIT_DEPTH.
The list of refspecs.
A remote called origin.