From: Zack Cerza Date: Tue, 17 Nov 2015 17:44:34 +0000 (-0700) Subject: Don't call rmtree() on GitErrors X-Git-Tag: 1.1.0~754^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=dc0b650bfe05db4523077908bcb46e21127efc0e;p=teuthology.git Don't call rmtree() on GitErrors Signed-off-by: Zack Cerza --- diff --git a/teuthology/repo_utils.py b/teuthology/repo_utils.py index ff6f850d3d..5dd95e4adf 100644 --- a/teuthology/repo_utils.py +++ b/teuthology/repo_utils.py @@ -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