2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 23:48:24 +00:00

Fix v5 git clean in pre-upgrade

This commit is contained in:
Pratik Vyas 2015-04-02 12:59:55 +05:30
parent f8f42da338
commit f301ba49d2

View File

@ -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