def clone(git_uri):
hash_digest = sha256_hash(git_uri)<EOL>local_path = home_directory_path(FOLDER, hash_digest)<EOL>exists_locally = path_exists(local_path)<EOL>if not exists_locally:<EOL><INDENT>_clone_repo(git_uri, local_path)<EOL><DEDENT>else:<EOL><INDENT>logging.info(  <EOL>"<STR_LIT>")  <EOL><DEDENT>return local_path<EOL>
Clone a remote git repository to a local path.

:param git_uri: the URI to the git repository to be cloned
:return: the generated local path where the repository has been cloned to