From f301ba49d2399068aa2f7f9449de286e79b2c082 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Thu, 2 Apr 2015 12:59:55 +0530 Subject: [PATCH] Fix v5 git clean in pre-upgrade --- bench/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/utils.py b/bench/utils.py index 3e31ddc0..65325211 100644 --- a/bench/utils.py +++ b/bench/utils.py @@ -431,9 +431,9 @@ def pre_upgrade(from_ver, to_ver, bench='.'): remove_shopping_cart(bench=bench) for app in apps: - cwd = os.path.join(bench, 'apps', repo) + cwd = os.path.join(bench, 'apps', app) if os.path.exists(cwd): - exec_cmd("git clean -df", cwd=cwd) + exec_cmd("git clean -dxf", cwd=cwd) def post_upgrade(from_ver, to_ver, bench='.'): from .app import get_current_frappe_version