2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

Update app.py

This commit is contained in:
Ameya Shenoy 2018-04-11 16:29:42 +05:30 committed by GitHub
parent d020bb528a
commit 43815279df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ def get_app(git_url, branch=None, bench_path='.', build_asset_files=True, verbos
#Gets repo name from URL
repo_name = git_url.rsplit('/', 1)[1].rsplit('.', 1)[0]
logger.info('getting app {}'.format(repo_name))
shallow_clone = '--depth 1 --no-single-branch' if check_git_for_shallow_clone() else ''
shallow_clone = '--depth 1' if check_git_for_shallow_clone() else ''
branch = '--branch {branch}'.format(branch=branch) if branch else ''
exec_cmd("git clone {git_url} {branch} {shallow_clone} --origin upstream".format(