Add support for shallow clones in the git module

I'm suggesting to add support for shallow clones in the git module. It's an interesting feature for deployment environments where the full history is not really needed. It saves bandwidth, disk space and the clones are much faster when the history is really big.