REDCORE-238 use more performant way of cloning

This commit improves the way we Clone a git repo using some features similar to "svn export".