2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-28 06:49:06 +00:00

perf: Remove git from the import tree

This commit is contained in:
Aditya Hase 2021-02-20 13:22:56 +05:30
parent cc92584927
commit df773d4f9f
No known key found for this signature in database
GPG Key ID: 0A55F0FCA0234972

View File

@ -12,7 +12,6 @@ import sys
# imports - third party imports
import click
import git
import semantic_version
from six.moves import reload_module
@ -359,6 +358,7 @@ def get_repo_dir(app, bench_path='.'):
return os.path.join(bench_path, 'apps', app)
def switch_branch(branch, apps=None, bench_path='.', upgrade=False, check_upgrade=True):
import git
from bench.utils import update_requirements, update_node_packages, backup_all_sites, patch_sites, build_assets, post_upgrade
apps_dir = os.path.join(bench_path, 'apps')
version_upgrade = (False,)