]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Disable "fix" for corrupt repo detection
authorZack Cerza <zack@cerza.org>
Mon, 9 Jun 2014 16:46:19 +0000 (11:46 -0500)
committerZack Cerza <zack@cerza.org>
Mon, 9 Jun 2014 16:46:19 +0000 (11:46 -0500)
It's causing more problems than it's solving at this point

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/worker.py

index 0b016002c3b7444723d12524165171cd883b85f7..8c9b2c38a6859a083dda6755f73b6cb8fafaee05 100644 (file)
@@ -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)