Skip to content

Commit

Permalink
Merge pull request #1021 from frappe/fix-delete
Browse files Browse the repository at this point in the history
fix: trailing slash deleting apps folder
  • Loading branch information
gavindsouza authored Jun 10, 2020
2 parents e26a0a9 + 70cb41f commit 5e0de6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_app(git_url, branch=None, bench_path='.', skip_assets=False, verbose=Fal
sys.exit(1)

# Gets repo name from URL
repo_name = git_url.rsplit('/', 1)[1].rsplit('.', 1)[0]
repo_name = git_url.rstrip('/').rsplit('/', 1)[1].rsplit('.', 1)[0]
shallow_clone = '--depth 1' if check_git_for_shallow_clone() else ''
branch = '--branch {branch}'.format(branch=branch) if branch else ''
else:
Expand Down

0 comments on commit 5e0de6f

Please sign in to comment.