mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-05-03 09:33:42 +02:00
Let clone_data_directory return early if clone exists
This commit is contained in:
parent
8d3049a5c7
commit
04899776de
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue