Clone shallow git copies if possible.