There is a flag that can be used with the git strategy to turn off shallow clones.