]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Don't call rmtree() on GitErrors
authorZack Cerza <zack@redhat.com>
Tue, 17 Nov 2015 17:44:34 +0000 (10:44 -0700)
committerZack Cerza <zack@redhat.com>
Tue, 17 Nov 2015 17:44:34 +0000 (10:44 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/repo_utils.py

index ff6f850d3ddcc59501813171d47eac28374f8c83..5dd95e4adf1b4c24ce33306f96ff3a846b1fc4f8 100644 (file)
@@ -39,7 +39,7 @@ def enforce_repo_state(repo_url, dest_path, branch, remove_on_error=True):
 
         reset_repo(repo_url, dest_path, branch)
         # remove_pyc_files(dest_path)
-    except (BranchNotFoundError, GitError):
+    except BranchNotFoundError:
         if remove_on_error:
             shutil.rmtree(dest_path, ignore_errors=True)
         raise