I have a Bamboo CI system with multiple agents (i.e. distributed), each build gets assigned to the next available agent; Also note that multiple builds of different branches of the same repository might run concurrently on the same machine
My build needs to checkout the code from a remote git repository and that is as far as the integration with git goes.
Currently the build clones the repository prior to each build (hard requirement) and keeps the complete git repository (i.e. .git directory) for each of the branches on the same file system.
As the build does not interact with git in any way (e.g. push, pull) other than checking out the latest code I would like to simply, in lamens terms, download the latest version of a given git branch and nothing more.
Would appreciate any assistance