Add option for cloning depth

Our task is currently failing on Travis-ci because the cloning timeout. It would be nice to have a way to control the clone depth.