code: private void initClonedRepository() throws GitAPIException, IOException {
  		if (!getUri().startsWith(FILE_URI_PREFIX)) {
  			deleteBaseDirIfExists();
  			Git git = cloneToBasedir();
  			if (git != null) {
  				git.close();
  			}
  			git = openGitRepository();
  			if (git != null) {
  				git.close();
  			}
  		}
  
  	}
docs: Clones the remote repository and then opens a connection to it.
  @throws GitAPIException when cloning fails
  @throws IOException when repo opening fails