1
0
Fork 0

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.
This commit is contained in:
Félix Piédallu 2024-02-27 19:37:53 +01:00
parent 3a3ecfa573
commit 52dff4d1d0

View file

@ -197,17 +197,7 @@ def build_app_dict(app, infos):
# If using head, find the most recent meaningful commit in logs # If using head, find the most recent meaningful commit in logs
if infos["revision"] == "HEAD": if infos["revision"] == "HEAD":
relevant_files = [ infos["revision"] = repo.head.commit.hexsha
"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
# Otherwise, validate commit exists # Otherwise, validate commit exists
else: else: