From dbf984e9d851bfcdcfb428a8090f00dd64663400 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 9 Jun 2014 11:46:19 -0500 Subject: [PATCH] Disable "fix" for corrupt repo detection It's causing more problems than it's solving at this point Signed-off-by: Zack Cerza --- teuthology/worker.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/teuthology/worker.py b/teuthology/worker.py index 0b016002c3..8c9b2c38a6 100644 --- a/teuthology/worker.py +++ b/teuthology/worker.py @@ -91,12 +91,12 @@ def fetch_teuthology_branch(path, branch='master'): 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) -- 2.39.5