1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Fix fixture that ensures .git presence

This commit is contained in:
Mike Degatano
2025-08-07 20:51:02 +00:00
parent ed45651fd9
commit 1f7aafcfd7

View File

@@ -347,8 +347,9 @@ def addon_repo_fixtures() -> dict[str, Path]:
# Ensure each repo folder has a dummy .git
(core_repo_fixture / ".git").mkdir(exist_ok=True)
for repo in os.listdir(git_repo_fixtures):
Path(repo, ".git").mkdir(exist_ok=True)
for f in os.listdir(git_repo_fixtures):
if (repo := git_repo_fixtures / f).is_dir():
(repo / ".git").mkdir(exist_ok=True)
return {
"core": core_repo_fixture,