Let clone_data_directory return early if clone exists

This commit is contained in:
Marian Steinbach 2022-10-18 08:55:03 +02:00
parent 8d3049a5c7
commit 04899776de

View file

@ -28,7 +28,7 @@ def clone_data_directory():
into the local file system using git
"""
if os.path.exists(config.GREEN_DIRECTORY_LOCAL_PATH):
shutil.rmtree(config.GREEN_DIRECTORY_LOCAL_PATH)
return
Repo.clone_from(config.GREEN_DIRECTORY_REPO, config.GREEN_DIRECTORY_LOCAL_PATH)