2
0
mirror of https://github.com/frappe/bench.git synced 2024-06-27 11:43:29 +00:00

fix: serious bug capable of deleting apps path

This commit is contained in:
casesolved-co-uk 2021-03-15 20:52:34 +00:00
parent 0ff8dddef9
commit a1db48b57e

View File

@ -109,7 +109,8 @@ def get_app(git_url, branch=None, bench_path='.', skip_assets=False, verbose=Fal
shallow_clone = '--depth 1' if check_git_for_shallow_clone() else ''
branch = '--branch {branch}'.format(branch=branch) if branch else ''
else:
repo_name = git_url.split(os.sep)[-1]
git_url = os.path.abspath(git_url)
_, repo_name = os.path.split(git_url)
shallow_clone = ''
branch = '--branch {branch}'.format(branch=branch) if branch else ''