mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Fix when package url has no branch/ref (#2683)
This commit is contained in:
parent
add484a2ea
commit
a509f6ccd2
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ def clone_or_update(
|
|||
) -> Path:
|
||||
key = f"{url}@{ref}"
|
||||
repo_dir = _compute_destination_path(key, domain)
|
||||
fetch_pr_branch = ref.startswith("pull/")
|
||||
fetch_pr_branch = ref is not None and ref.startswith("pull/")
|
||||
if not repo_dir.is_dir():
|
||||
_LOGGER.info("Cloning %s", key)
|
||||
_LOGGER.debug("Location: %s", repo_dir)
|
||||
|
|
Loading…
Reference in a new issue