- sh = shell.Shell()
- input.infobox("Copying files (this may take a while)...")
- if not os.path.exists(dir):
- sh.call("git", "clone", "-q", "--shared", application.repository(old_options.srv_path), dir)
+ if not os.path.exists(dir) or not os.listdir(dir):
+ input.infobox("Copying files (this may take a while)...")
+ shell.call("git", "clone", "-q", "--shared", application.repository(old_options.srv_path), dir)
+ else:
+ logging.info("Skipped clone")