WIP: Fetch git shallow clone when possible
Description
When the requested ref is advertised by remote and that no tag is required, then we shallow clone that requested ref. Otherwise we fallback on full clone.
Workspace opening and tracking opeerations still get a full clone.
This merge request, when approved, will close: #261
Edited by Laurence Urhegyi