Skip to content

Commit

Permalink
fix: serious bug capable of deleting apps path
Browse files Browse the repository at this point in the history
  • Loading branch information
casesolved-co-uk committed Mar 17, 2021
1 parent 0ff8ddd commit a1db48b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''

Expand Down

0 comments on commit a1db48b

Please sign in to comment.