2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-13 16:56:33 +00:00

fix: Return repo_name if app_name doesn't exist

This commit is contained in:
gavin 2020-09-10 11:44:45 +05:30 committed by GitHub
parent 6c4bb2883b
commit aa1a1b9a71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,8 +156,9 @@ def get_app_name(bench_path, repo_name):
if app_name and repo_name != app_name:
os.rename(os.path.join(apps_path, repo_name), os.path.join(apps_path, app_name))
return app_name
return app_name
return repo_name
def new_app(app, bench_path='.'):