From 52dff4d1d04124b3032d7a3b1f8f67747a362081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 27 Feb 2024 19:37:53 +0100 Subject: [PATCH] list_builder: just take the app repository's HEAD Let's not scroll down the repository for 'relevant commits' anymore. Nothing is related to the SHA anymore, but to the version number. --- list_builder.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/list_builder.py b/list_builder.py index 802390a..e16511c 100755 --- a/list_builder.py +++ b/list_builder.py @@ -197,17 +197,7 @@ def build_app_dict(app, infos): # If using head, find the most recent meaningful commit in logs if infos["revision"] == "HEAD": - relevant_files = [ - "manifest.json", - "manifest.toml", - "config_panel.toml", - "hooks/", - "scripts/", - "conf/", - "sources/", - ] - relevant_commits = repo.iter_commits(paths=relevant_files, full_history=True, all=True) - infos["revision"] = next(relevant_commits).hexsha + infos["revision"] = repo.head.commit.hexsha # Otherwise, validate commit exists else: