diff --git a/slapos/runner/gittools.py b/slapos/runner/gittools.py index a0c0c30c254ba38fd1b5eb8f1dbc7aa23adb7b2d..d5d53525e24e60a19ba9765b815990b8daac3223 100644 --- a/slapos/runner/gittools.py +++ b/slapos/runner/gittools.py @@ -40,8 +40,6 @@ def cloneRepo(data): code = 1 except Exception as e: json = safeResult(str(e)) - if os.path.exists(workDir): - shutil.rmtree(workDir) return jsonify(code=code, result=json) def gitStatus(project):