Implement option to clone repos shallow (see config.bbp#1177)