Skip to content

Commit

Permalink
fix(get-app): allow ssh urls
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed May 12, 2020
1 parent f9d95e1 commit 7402807
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bench/app.py
Expand Up @@ -100,7 +100,9 @@ def remove_from_excluded_apps_txt(app, bench_path='.'):

def get_app(git_url, branch=None, bench_path='.', skip_assets=False, verbose=False, postprocess=True, overwrite=False):
if not os.path.exists(git_url):
if not check_url(git_url, raise_err=False):
if git_url.startswith('git@'):
pass
elif not check_url(git_url, raise_err=False):
orgs = ['frappe', 'erpnext']
for org in orgs:
url = 'https://api.github.com/repos/{org}/{app}'.format(org=org, app=git_url)
Expand Down

0 comments on commit 7402807

Please sign in to comment.