Fixes #402: do a shallow clone in Continous Deployment scenarios