mirror of
https://github.com/frappe/bench.git
synced 2025-01-26 08:08:23 +00:00
Fix v5 git clean in pre-upgrade
This commit is contained in:
parent
f8f42da338
commit
f301ba49d2
@ -431,9 +431,9 @@ def pre_upgrade(from_ver, to_ver, bench='.'):
|
|||||||
remove_shopping_cart(bench=bench)
|
remove_shopping_cart(bench=bench)
|
||||||
|
|
||||||
for app in apps:
|
for app in apps:
|
||||||
cwd = os.path.join(bench, 'apps', repo)
|
cwd = os.path.join(bench, 'apps', app)
|
||||||
if os.path.exists(cwd):
|
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='.'):
|
def post_upgrade(from_ver, to_ver, bench='.'):
|
||||||
from .app import get_current_frappe_version
|
from .app import get_current_frappe_version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user