lock = filelock('%s.lock' % path)
lock.acquire()
try:
- if os.path.isdir(path):
- p = subprocess.Popen('git status', shell=True, cwd=path)
- if p.wait() == 128:
- log.info("Repo at %s appears corrupt; removing",
- branch)
- shutil.rmtree(path)
+ #if os.path.isdir(path):
+ # p = subprocess.Popen('git status', shell=True, cwd=path)
+ # if p.wait() == 128:
+ # log.info("Repo at %s appears corrupt; removing",
+ # branch)
+ # shutil.rmtree(path)
if not os.path.isdir(path):
log.info("Cloning %s from upstream", branch)