import os
import sys
import distutils
+import logging
import wizard
from wizard import app, command, git, prompt, shell, util
else:
ihandler.ask(options)
- input.infobox("Copying files (this may take a while)...")
- if not os.path.exists(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")
with util.ChangeDirectory(dir):
if not old_options.retry and version and version != "head-scripts": # for ease in testing
shell.call("git", "reset", "-q", "--hard", appstr)