fix: Don't bother resolving installed app (#36610)
If only app name is specified and it already exists on bench, don't bother resolving using github APIs which can be flaky sometimes.
This commit is contained in:
parent
93dced0d87
commit
9b84264fa5
1 changed files with 2 additions and 0 deletions
|
|
@ -260,6 +260,8 @@ def parse_app_name(name: str) -> str:
|
||||||
else:
|
else:
|
||||||
_repo = name.rsplit("/", 2)[2]
|
_repo = name.rsplit("/", 2)[2]
|
||||||
repo = _repo.split(".", 1)[0]
|
repo = _repo.split(".", 1)[0]
|
||||||
|
elif name in frappe.get_all_apps():
|
||||||
|
return name
|
||||||
else:
|
else:
|
||||||
_, repo, _ = fetch_details_from_tag(name)
|
_, repo, _ = fetch_details_from_tag(name)
|
||||||
return repo
|
return repo
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue