This is more of a best practice question, as we already have one solution in place, yet I am curious as to whether there are better ways of solving this.
Our projects are divided into 1 huge base project, that all other projects depend on and sub-projects. When building a sub project, I therefore also need to check out that one. In a TFSVC-build, this was possible on the "source" tab of the build definition, where you could specify exactly which projects you wanted the build agent to get for you.
In git (and VNEXT), this tab is gone, and instead there is only the option to specify a branch of your current repository. We solved this by adding a powershell-script to every project, that simply runs "git clone mainproject", granting the same effect as before.
Should our main project URL ever change, this would, however, mean we had to change this script in every customer project, which (while not impossible) would be tedious.
Has anyone got experience of something similar and has found a better way of doing this?