From a1db48b57ef7263e1bf2775f8738469f9074533f Mon Sep 17 00:00:00 2001 From: casesolved-co-uk Date: Mon, 15 Mar 2021 20:52:34 +0000 Subject: [PATCH] fix: serious bug capable of deleting apps path --- bench/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bench/app.py b/bench/app.py index 390ca036..60786760 100755 --- a/bench/app.py +++ b/bench/app.py @@ -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 ''