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

less verbose app install (#369)

This commit is contained in:
Faris Ansari 2017-04-05 12:17:22 +05:30 committed by Rushabh Mehta
parent 4eef5d1b1a
commit 7946d17cc1

View File

@ -49,6 +49,9 @@ def write_appstxt(apps, bench_path='.'):
return f.write('\n'.join(apps))
def get_app(git_url, branch=None, bench_path='.', build_asset_files=True, verbose=False):
#less verbose app install
if '/' not in git_url:
git_url = 'https://github.com/frappe/' + git_url
#Gets repo name from URL
repo_name = git_url.rsplit('/', 1)[1].rsplit('.', 1)[0]
logger.info('getting app {}'.format(repo_name))